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 9151617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:50:48+00:00 2026-06-17T11:50:48+00:00

I am trying to create a web application, primary objective is to insert request

  • 0

I am trying to create a web application, primary objective is to insert request data into database.

Here is my problem, One request itself contains 10,000 to 1,00,000 data sets of information
(Each data set needs to be inserted separately as a row in the database)

I may get multiple request on this application concurrently, so its necessary for me to make the inserts fast.

I am using MySQL database, Which approach is better for me, LOAD DATA or BATCH INSERT or is there a better way than these two?

How will your application retrieve this information?
– There will be another background thread based java application that will select records from this table process them one by one and delete them.

Can you queue your requests (batches) so your system will handle them one batch at a time?
– For now we are thinking of inserting it to database straightaway, but yes if this approach is not feasible enough we may think of queuing the data.

Do retrievals of information need to be concurrent with insertion of new data?
– Yes, we are keeping it concurrent.

Here are certain answers to your questions, Ollie Jones

Thankyou!

  • 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-06-17T11:50:50+00:00Added an answer on June 17, 2026 at 11:50 am

    Ken White’s comment mentioned a couple of useful SO questions and answers for handling bulk insertion. For the record volume you are handling, you will enjoy the best success by using MyISAM tables and LOAD DATA INFILE data loading, from source files in the same file system that’s used by your MySQL server.

    What you’re doing here is a kind of queuing operation. You receive these batches (you call them “requests”) of records (you call them “data sets.) You put them into a big bucket (your MySQL table). Then you take them out of the bucket one at a time.

    You haven’t described your problem completely, so it’s possible my advice is wrong.

    Is each record (“data set”) independent of all the others?

    Does the order in which the records are processed matter? Or would you obtain the same results if you processed them in a random order? In other words, do you have to maintain an order on the individual records?

    What happens if you receive two million-row batches (“requests”) at approximately the same time? Assuming you can load ten thousand records a second (that’s fast!) into your MySQL table, this means it will take 200 seconds to load both batches completely. Will you try to load one batch completely before beginning to load the second?

    Is it OK to start processing and deleting the rows in these batches before the batches are completely loaded?

    Is it OK for a record to sit in your system for 200 or more seconds before it is processed? How long can a record sit? (this is called “latency”).

    Given the volume of data you’re mentioning here, if you’re going into production with living data you may want to consider using a queuing system like ActiveMQ rather than a DBMS.

    It may also make sense simply to build a multi-threaded Java app to load your batches of records, deposit them into a Queue object in RAM (a ConcurrentLinkedQueue instance may be suitable) and process them one by one. This approach will give you much more control over the performance of your system than you will have by using a MySQL table as a queue.

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

Sidebar

Related Questions

I'm trying to create a web application project template for everyone to use here
I'm trying to create a web application using maven, tomcat and hibernate. Now I'm
I am trying to create a new web application using PowerShell. I keep getting
I've been trying to create a stable web service application for the last 2-3
I'm trying to create an ASP.NET Web Application project in Visual Studio 2010 but
I'm trying to create a large, multi-page, PHP web application for work where a
I'm trying to create a web application using a JavaScript framework (eg Extjs) for
I am trying to create a web application using the MVC design pattern. For
I am starting a new project trying to create a web application for an
I am trying to create a new web application in Web service. I am

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.