org.hibernate.engine.spi.EntityKey consumes a lot of memory
We should explore ways to get
to consume less memory. On a high end server Hibernate allocated 200GB of instances of this EntityKey in just 25 minutes. Good news is that they are short lived, but still we could shave something off?