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
|