This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes Performance for batch update Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Performance for batch update" Watch "Performance for batch update" New topic

Performance for batch update

Martin Lira
Ranch Hand

Joined: May 26, 2004
Posts: 97
I have a stored procedure that will be called in a loop and might be executed several times. Will the use of executeBatch affect the performance as its a stored procedure and not a direct sql insert.

Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30130

The batch still saves on network roundtrips. So if you can use batches, you would still be better off to do so.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Performance for batch update
Similar Threads
Performance of fomatting string : Java vs Database.
query for updating
Doubt in ePratice Exam Question
SQL - correlated subqueries
EJB or Stored Procedure