Joined: Fri Jun 11, 2004 8:41 am Posts: 6 Location: Belgium
|
Hibernate version:
3.3.0.CR1
Name and version of the database you are using:
MySQL 5
I just wanted to let this know to other users because I've spent almost a week searching the forums and the Internet why I kept seeing an insert statement (hibernate.show_sql=true) for each entity insert even after I specified to use batch inserts (hibernate.jdbc.batch_size=50).
I changed to hilo id generator instead of autoincrement and I changed the timestamp columns to datetime types.
Only when using p6spy I discovered that although the Hibernate SQL shows an insert for each entity, they are still sent to the database in a batch.
So I should have trusted Hibernate to do the right thing from the beginning!
|
|