-->
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: Performance of default-cascade
PostPosted: Mon Aug 16, 2004 5:32 pm 
Regular
Regular

Joined: Thu Jul 01, 2004 12:13 am
Posts: 68
Location: San Diego, CA
Through much of the book, you explicitly set cascade on the particular relationship, usually on the many (or Set) side. You talk about (pp. 136) where this could be a performance hit when setting cascade on the "one" side of a 1:M. However, this is in the context of a recursive relationship.

Now suppose you don't have recursive relationships and you set default-cascade across all your VOs, what would the implication be of this? On the "Set" side, I see no difference but on the <many-to-one>'s I'm assuming those would take a hit, albeit smaller because there's no recursion.

Can you speak to your experiences of using this feature of Hibernate in the context of performance?

Thanks,
Lou


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 16, 2004 5:35 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Think about detached objects. As discussed in chapter 4, Hibernate would have to "walk" in directions on reattachment unneccessarily. Cascades are not only relevant for save and delete, update/reattachment is one of the motiviations for fine-grained reachability control.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


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.