How can I verify hibernate.jdbc.batch_size is working?
In my hibernate properties I have 
 &lt;prop key="hibernate.jdbc.batch_size">30&lt;/prop>

In my code I do something similar to  

    for ( some loop ) {
        Customer customer = new Customer(.....);
        session.save(customer);
        if ( i % 30 == 0 ) { //30, same as the JDBC batch size
            //flush a batch of inserts and release memory:
            session.flush();
            session.clear();
        }
    }

However, When I change the batch size it doesn't seem to affect the overall run time.  How can I verify that it is in fact working?

Thanks!
How can I verify hibernate.jdbc.batch_size is working?
===

In my hibernate properties I have 
 &lt;prop key="hibernate.jdbc.batch_size">30&lt;/prop>

In my code I do something similar to  

    for ( some loop ) {
        Customer customer = new Customer(.....);
        session.save(customer);
        if ( i % 30 == 0 ) { //30, same as the JDBC batch size
            //flush a batch of inserts and release memory:
            session.flush();
            session.clear();
        }
    }

However, When I change the batch size it doesn't seem to affect the overall run time.  How can I verify that it is in fact working?

Thanks!