Connecting Tech Pros Worldwide Forums | Help | Site Map

How to handle high-volume inserts?

Newbie
 
Join Date: Jun 2009
Posts: 1
#1: Jun 17 '09
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.

Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,652
#2: Jun 17 '09

re: How to handle high-volume inserts?


you can use Prepared Statements, although I don't know if/how MSSQL/Java implement them.
nbiswas's Avatar
Member
 
Join Date: May 2009
Location: India
Posts: 33
#3: Jun 26 '09

re: How to handle high-volume inserts?


Please check this site

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


Similar Microsoft SQL Server bytes