aspose file tools
The moose likes JDBC and the fly likes JDBC batch statement Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "JDBC batch statement" Watch "JDBC batch statement" New topic
Author

JDBC batch statement

Sub swamy
Ranch Hand

Joined: Oct 02, 2002
Posts: 121
Is there any upper limit to the batch statement size that we use in JDBC? Can we set the batch statement size to as high as 100/200 ?

Or is it dependent on the driver/RDBMS combination that we use ?
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3652

100/200 doesn't seem particular high to me. I believe most of the way batch actually works is database driver dependent. For example, the driver could ignore the limit and send the data sooner.


My Blog: Down Home Country Coding with Scott Selikoff
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JDBC batch statement
 
Similar Threads
read large CSV file and update the database
JDBC, Create Stored Procedure, delimiters
Taking an argument from a file into SQL prep statement
transaction size and commit
Why Batch Update Support Only One Single PreparedStatement