Connecting Tech Pros Worldwide Help | Site Map

How to handle high-volume inserts?

  #1  
Old June 17th, 2009, 08:20 AM
Newbie
 
Join Date: Jun 2009
Posts: 1
I'm relatively new to MSSQL, and I'm trying to improve the DB write performance.

I have some legacy Java code that's generating about 1500 records every second. These 1400 records are generated by multiple Java threads. Right now, my approach is to create an SQL statement in each thread, to write each record into the MSSQL DB; this is proving to be terribly slow.

What are my options specific to MSSQL and Java? How do I insert so many records into the DB without seriously impacting performance?

Thanks in advance.
  #2  
Old June 17th, 2009, 09:41 AM
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,485
Provided Answers: 9

re: How to handle high-volume inserts?


you can use Prepared Statements, although I don't know if/how MSSQL/Java implement them.
  #3  
Old June 26th, 2009, 05:34 AM
nbiswas's Avatar
Newbie
 
Join Date: May 2009
Location: India
Posts: 5

re: How to handle high-volume inserts?


Please check this site

http://blog.sqlauthority.com/2007/06...-of-union-all/
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postgre and Web Request Kilmer C. de Souza answers 38 November 23rd, 2005 12:43 AM
Static? Bruno Rodrigues answers 16 November 16th, 2005 05:28 AM