Reputation: 6079
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
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