Hibernate Batch Fetch style recommendations

Hello,

thanks! Some additional feedback to try to prove my point… this is the memory dump taken from my application before upgrading to Hibernate 5.3:

hb1

and this is the heap after the upgrade (the same of my previous post):

hb2

Please note the difference between the retained size of the SingleTableEntityPersister instances. In particular, the retained size of each SingleTableEntityPersister is coming from a map where each entry references the mentioned LegacyBatchingEntityLoader.