These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Paging out loaded objects (reverse lazy loading)
PostPosted: Tue Aug 01, 2006 12:54 pm 
Newbie

Joined: Tue Aug 01, 2006 12:42 pm
Posts: 11
I haven't been able to track down whether NHibernate (or Hibernate) supports the reverse of lazy loading.

That is, if I have an object in memory (say, it's been lazy loaded) and I decide I want to replace that real object with a proxy (ie. page it out). On subsequent reference, NHibernate's cool lazy loading will just page it back in.

ISession.evict() doesn't seem to do the trick because it doesn't actually remove the object from memory.

This can be very useful for objects with large memory footprints (using an LRU algorithm).

Many thanks to all!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.