-->
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: Deleting many objects within same session dramatically slow!
PostPosted: Wed Feb 02, 2005 8:52 am 
Newbie

Joined: Wed Feb 02, 2005 8:37 am
Posts: 1
Hi,

I investigated on this problem in the formun and could not find any messages addressing it. Ok here the description (Hibernate version is 2.1.7c):

When you delete a huge amount of objects within the same hibernate session, the "nullifiables" set fills up. This is a problem if you use "Lifecycle" enabled objects. Every single delete clones the "nullifiables" set and this takes a lot of time (we have cases of 150000+ keys in this set).

If you use "Session.clear()", the "nullifiables" set is NOT cleared. This is in contrast to my understanding, that a "Session.clear()" has the same effect as "Session.close()" and getting a new session. (Except that you cannot keep any transactions open, right?)

Is it necessary to keep the entries of the "nullifiables" set even after a "Session.clear()" or can this be cleared also?

Thanks
Michael


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 02, 2005 9:22 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
fixed in CVS, thanks.


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.