1

I want to provide a custom Batcher for Hibernate to use (for this reason: hibernate insert batch with partitioned postgresql), but I want to create a modification of whatever it's already using (BatchingBatcher or NonBatchingBatcher). What's the default value of hibernate.jdbc.factory_class, or how can I figure out which Batcher Hibernate is currently using?

1 Answer 1

1

See the method createBatcherFactory in this file.

By default, the NonBatchingBatcher is used if the batch size is 0; otherwise the BatchingBatcher is used.

The default batch size is positive, so if the batch size is not set the BatchingBatcher will be used.

1
  • Thanks. Shouldn't be trusting line numbers anyway - that link might point to some other version in the future.
    – Alan
    Dec 17, 2009 at 22:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.