I wanted to ask how you guys in general use batch-size
within the mappings. Do you in general set a certain number on any mapped collection? Of course, I do know about the other fetching strategies like join fetch
, but sometimes I have to filter during post processing, which might trigger lot's of lazy loading. I figured out if I set the batch-size e.g. to 100, I have much better performance in such cases.
Do you set this property in general on any mapped collection? If not, why not? Could there be any disadvantage?