Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6098229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:08:03+00:00 2026-05-23T13:08:03+00:00

I’m working on a new web application to file county tax returns. So far,

  • 0

I’m working on a new web application to file county tax returns. So far, I’m developing the logic so that the data is collected in several forms, where it stays persisted in memory until the user gets to the final step where they click save.

At that point, the data is saved to the database, all at once. My reasoning for this method is to allow the data to be loaded in a single transaction. Plus, I only need to use insert statements, not Insert if/else update Which, if that transaction fails, I don’t have orphaned and partial data to clean up.

But, now I’m starting to think I should save as soon as possible. Then add data to the DB as needed.

I am hoping this is not a Ford vs Chevy debate. I’m really asking an objective question, is there truly a correct approach to apply in most situations?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:08:04+00:00Added an answer on May 23, 2026 at 1:08 pm

    I’d go for your new approach also – save as often as possible – reasons for this:

    • what happens when application goes off? (the user has to enter ALL the data again)
    • what happens when the user starts filling the form, leaves for 2-3-4 hours and days and comes back? expired and deleted sessions and session variables – the user has to enter all the data again
    • you have to check the validity of the data both ways – when you save to memory first and after to DB
    • what happens when the user completes 5 forms, submits and you have an error in the first one? – you will put him to complete the form anyway.
    • you have to check the data integrity in both cases.

    I don’t see any reasonable reason for NOT saving as often as possible

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.