Batches in PreparedStatement
Posted by: mmigal
Date: December 09, 2004 04:50PM

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?

Michael

Options: ReplyQuote


Subject
Written By
Posted
Batches in PreparedStatement
December 09, 2004 04:50PM
December 13, 2004 10:40AM
December 16, 2004 08:00PM


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.