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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:18:32+00:00 2026-05-27T13:18:32+00:00

I am doing batch insert for inserting 80k records and 1200 records per batch.

  • 0

I am doing batch insert for inserting 80k records and 1200 records per batch.
The query is executing fine. The problem is that I am getting data from mssql server and creating a batch array out of it. So there are changes are due to some reason one of the batch insert fails.

But when a batch insert fails, it does for all 1200 records of that particular batch.

So, is there any way to find out how to get the exact records from the batch of 1200 records that failed the batch insertion.

And one more question.

While doing these insertion, the web site goes down for the time of updation.

Is there any way that during this time as well the site is not down.

Any help will be appreciated.

Thanks

  • 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-27T13:18:32+00:00Added an answer on May 27, 2026 at 1:18 pm

    No tools will give you more performance, as your bottleneck is your server…
    what you can do to lower the server load is either to use transactions, or use “insert delayed”.

    Transaction: [ http://dev.mysql.com/doc/refman/4.1/…-commands.html ]
    If your db support it (mysql may need a specific backend to support it, depending of mysql version), you start a transaction by sending “start tansaction”, then send all your insert one after the other, and finish the transaction with a “commit” or a “rollback”.
    This method have the great advantage that the db knows that it don’t have to re-compute the indexes before you do the commit.

    insert delayed: [ http://dev.mysql.com/doc/refman/4.1/…t-delayed.html ]
    This is a special mysql command, that let you give a hint on the db about the importance of the insert.
    An insert delayed will always be processed when the db will not be occupied doing something else, it have a low priority comparing to standard insert/update.

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

Sidebar

Related Questions

I'm doing some work that involves inserting a batch of records into a Sql
I'm using TransactionScope to do some batch insert and updates. Problem is, I'm getting
When doing an INSERT with a lot of data, ie: INSERT INTO table (mediumtext_field)
So I have a UITableView in which I am doing batch insert/delete/reloads into. Every
All that I will do is insert records into the database. However, I would
So, I have a .NET program doing batch loading of records into partitioned tables
I have 30 tables of data that I'm running a query on, and then
Doing the below will reproduce my problem: New WPF Project Add ListView Name the
I'm creating a VB.Net application that stores data in a SQLite backend. The data
I'm using Mongoid for a project and am trying to use the batch insert

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.