Hibernate Version: 2.1.6.
Database: Sybase 11.9.2
Does hibernate automatically does the bulk insert/update if I do not call the flush explicitily. Basically I am trying to do the following.
Start transaction.
session.save(obj1), session.save(obj2),........................
Commit transaction
Do I need to do anything special to make sure that all the inserts and updates are batched to the database. If they are batched how can I control the batch size. Is there any parameter or I should call the flush periodically.
Is there anything logged to tell me that insert/upadate are being batches.
Objects being saved results in three database updates to different table. As there is one master and two child table and child table usually have only one row.
|