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!
|