Hi,
I did make some experience with Hibernate & Batch-updates on SQLServer2008.
It worked to me already with the first try (I use a @Version column in each entity class),
anyway the performance gain was not very remerkable:
It was ca. 10% faster than without batching (I must mention here that we have a fast network).
I used
Code:
<property name="hibernate.jdbc.batch_size" value="1000"/>
<property name="hibernate.order_inserts" value="true"/>
<property name="hibernate.order_updates" value="true"/>
on large transaction where I do perform more than 1000 insert and updates per flush or commit.
If there raises a SQLException during batch-updates, then the message is not so clear and precise as without batching.
Due this disadvantage I personally will use batching only during data-migration but not afterwards in the live-system.