you might want to consider using the long-session-pattern. For an
explanation of the pattern and why it does not eat your DB-Connections, see
the HIA by Gavin King or the Hibernate-Website.
For an implementation using hivemind see
http://wiki.apache.org/jakarta-hivemind/ImplementingHibernateLongSessions

regards,
Marcus

> -----Original Message-----
> From: Dale Becker [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 08, 2005 1:13 PM
> To: [email protected]
> Subject: Tapestry and Hibernate Lazy Loading
> 
> 
> I am trying to use lazy loading in Tapestry 3.0.3 and cannot 
> get it to work.
> 
> 
> I have in the meantime made my object model use join="fetch" 
> to get the
> sub-objects data (which affectively disables lazy loading). 
> But this means
> our application loads large amounts of data when it is not needed.
> 
> This is all ok when dealing with one instance of an object as 
> the object
> graph is not too bad for one object - the problem arises when we do
> searches.
> 
> When doing a search the system might be loading a few 
> thousand instances of
> that large object graph. Which causes major performance issues for us.
> 
> I have tried managing the session across requests using the Spring
> "OpenSessionInView" Filter but that does not help as Tapestry 
> pages keep
> around object references that were loaded during previous requests.
> 
> If some part of the object graph is lazily loaded, it isn't 
> always possible
> to reattach it to the current session, because there is not enough
> information in the proxy, this is the case for example with a 
> polymorphic
> class.
> 
> Can anyone shed some light on this for me - I desperately 
> need to get this
> working.
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to