Nikita
Nikita

Reputation: 6079

can collection select batch size be defined SessionFactory-wide in Hibernate 4?

Hibernate's @BatchSize can be used to define select batch size behavior for annotated collections (or types). However, is there a way to configure SessionFactory to set a global select batch size for all collections - instead of having to annotate one at a time?

Upvotes: 1

Views: 161

Answers (1)

Jigar Parekh
Jigar Parekh

Reputation: 6273

i think you can specify hibernate.default_batch_fetch_size while configuring session factory to set default batch size.

refer to link for documentation

Upvotes: 1

Related Questions