-->
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: Delete performance
PostPosted: Tue Jan 08, 2008 11:04 am 
Newbie

Joined: Sun Jan 06, 2008 4:33 pm
Posts: 1
I try to delete a large graph of objects (parent/child with many relations on others classes) and The delete function generates many sql SELECT query. It takes more than 15 minutes to finish the operation

My questions are :

It is possible to remove all this sql query ? and How ?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 08, 2008 11:54 am 
Regular
Regular

Joined: Wed Jan 25, 2006 1:11 am
Posts: 118
Location: Copenhagen, Denmark
My guess is that your objects are fetched for nHibernate to perform cascading operations and to cascade to the complete object graph it have to be fetched from the database.

15 minutes sounds like a long time to fetch data, how large is your object graph?


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.