MySQL Forums
Forum List  »  Performance

Batching PreparedStatement
Posted by: mmigal
Date: December 09, 2004 04:15PM

I am using JConnector (3.0.16) to manipulate MySQL DB (4.1) from Java program. In some instances, I have to add multiple records to the same table, so I tried to use PreparedStatement.addBatch() and PreparedStatement.executeBatch() methods. It works, but I do not see any big preformance boost compared to separate statements. Does JConnector internally just send those batched statements one at a time, or does it really do the send all in one shot?


Options: ReplyQuote

Written By
Batching PreparedStatement
December 09, 2004 04:15PM
December 09, 2004 06:30PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.