I have an application that does quite a bit of batch inserts. I'd like to optimize the application to do these as fast as possible.
I see several Hibernate Settings that I think have to do with batch inserts:
hibernate.jdbc.batch_size
hibernate.jdbc.batch_versioned_data
hibernate.jdbc.use_get_generated_keys
I'm not sure if I need to set these properties. If I do need to set them, I'm not sure what the correct values are.
Is it safe to set hibernate.jdbc.batch_versioned_data
and hibernate.jdbc.use_get_generated_keys
to true
for my version of Oracle?
How do I choose a batch size?
I am using the following versions of these libraries:
- Hibernate: 3.2.3 GA
- Oracle Database: 11G
- Oracle Database Driver: 11.2.0.3.0
- c3p0: 0.9.1.2