-->
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.  [ 2 posts ] 
Author Message
 Post subject: Lazy Loading and saving objects
PostPosted: Thu Jan 24, 2008 8:20 pm 
Newbie

Joined: Thu Jan 24, 2008 8:06 pm
Posts: 1
In order to make our retrieval of a particular object more efficient, we declared the associations of this particular object to be declared lazy. This improved the performance of object retrieval, but caused the saving of new versions of the same object to be slowed. Please note that the associated objects were already in the database.
Could you please explain why this happens.
Thanks very much
S


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 24, 2008 10:15 pm 
Expert
Expert

Joined: Mon Nov 26, 2007 2:29 pm
Posts: 443
If you indicated to cascade-update the children, your updating code now has to first be retrieve, then update, then persist to the database. When it wasn't lazy, the "retrieval" step didn't occur.

_________________
Gonzalo Díaz


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

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.