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: updating all pojo dependancies takes too long
PostPosted: Fri Apr 09, 2010 11:54 am 
Newbie

Joined: Sat Oct 17, 2009 1:48 pm
Posts: 9
Hi, thanks for your help in advance.

I have a peculiar problem and Im sure its a standard issue encountered often. I load data into hibernate-managed pojos that refer to each other via many-to-one or many-to-many/sets of one-to-many relationships. problem is, updating even one of these pojos takes very long (at least 90 seconds, and i have no data in the db yet.....dreading what would happen in production). I looked in the log and hibernate basically updates every node of the graph individually recursively. I tried changing the fetch methd, setting batch-update, but nothing helps. can somebody suggest something? I have cascades set to save-update...is the only solution disabling them? (I hope not)

Thanks a lot
Lev


Top
 Profile  
 
 Post subject: Re: updating all pojo dependancies takes too long
PostPosted: Fri Apr 09, 2010 6:17 pm 
Newbie

Joined: Sat Oct 17, 2009 1:48 pm
Posts: 9
fixed it. Ive looked closer into performance strategies in Chap 19 of the manual and noticed how the creators discourage setting cascades on many-to-one and many-to-many. after thinking and experimenting I agreed with them


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.