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

  • Home
  • SEARCH
  • 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 6652365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:07:44+00:00 2026-05-26T01:07:44+00:00

I am dealing with a situation when my system inserts dynamically multiple entry in

  • 0

I am dealing with a situation when my system inserts dynamically multiple entry in db table,it could be 1, 2 or may be 100 or may be more, this is achieved using a ajax call which while insertion will display a loader image to user who has made this action.

So , my question: Is this the good practice to make this insert online and keep the user looking at loader image or shall we collect the data somewhere and use a cron job later when user is offline….

Please give some suggestion on this…

  • 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-26T01:07:44+00:00Added an answer on May 26, 2026 at 1:07 am

    I would say the answer here is “it depends”. If you need the user to be aware of the data changes that they have made i.e. they might want to see the changes that have been made in the database rather than a “please wait until CRON job has run” notice then the answer is “yes” you should make the insert online.

    If it is acceptable (from a user experience point of view) to have the data inserted at a later point in time i.e. offline via a CRON job as you describe, then it might be acceptable to run the update offline. Though personally I would only do this when dealing with larger data volumes than the ones you are describing.

    if the size of the insert is limited to around 100 max then the user should not have to wait that long for the insert to run online (though it does depend on the target database for the insert). One suggestion here if the insert is taking a long time (and hence the user has to wait a while looking at the loader image) is to examine why the insert is taking so long. If you tune the insert so that it runs quickly then you’ll get the best of both worlds: a good user experience and correct state in the database.

    Hope that helps.

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

Sidebar

Related Questions

I'm dealing with a MySQL table that defines the JobName column as UNIQUE. If
The table I'm dealing with it potentially larger than available memory (let's say 10GB)
Hallo everybody, I'm dealing with a pretty strange situation here. I have developed a
I know how to approach this problem but i have very little experience dealing
Here's the situation I'm dealing with. The original query I had was: SELECT c.CustID,
Dealing with an employee that went over my head
When dealing with small projects, what do you feel is the break even point
I frequently have problems dealing with DataRows returned from SqlDataAdapters . When I try
I am dealing with MySQL tables that are essentially results of raytracing simulations on
I'm dealing with an issue with my current employer that has seriously made me

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.