By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,574 Members | 1,977 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,574 IT Pros & Developers. It's quick & easy.

How to handle high-volume inserts?

P: 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.
Jun 17 '09 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 5K+
P: 8,639
you can use Prepared Statements, although I don't know if/how MSSQL/Java implement them.
Jun 17 '09 #2

P: 149

Post your reply

Sign in to post your reply or Sign up for a free account.