What's the default value of the Hibernate property hibernate.jdbc.factory_class?
-
06-07-2019 - |
Question
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?
Solution
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow