[hibernate-dev] interesting issues in the forum

Emmanuel Bernard emmanuel at hibernate.org
Mon Nov 24 15:03:25 EST 2008


On  Nov 24, 2008, at 11:17, Sanne Grinovero wrote:


>
>
> sort + scrollableresult appears to load all in memory (never happened
> to me, needs a test)
> http://forum.hibernate.org/viewtopic.php?t=992342
>
>

The implementation suffers several flows:
  - we do create an EntityInfo[] as big as the number of hits
  - we lazily load this array but we never release "old content"
  - we lazily load the content (ie objects) by window but we never  
release it

Some Soft reference based cache can help.



More information about the hibernate-dev mailing list