-->
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: Feedback needed on RFE idea
PostPosted: Thu Jun 23, 2005 12:04 pm 
Senior
Senior

Joined: Tue Mar 02, 2004 6:17 pm
Posts: 151
Hi,

I'd like to file a RFE for the addition of Session.delete(id) to aid in "bulk deletes". Bulk deletes, as you all know, occur completely on the DB end and Hibernate's cache could potentially be left holding references to nonexistant objects. In my case, each object contains up to 1MB of data, so retrieving them one at a time in order to session.delete(Object) really isn't very efficient for me -- but I want to keep Hibernate's cache synchronized.

I therefore propose adding Session.delete(id) which would allow us to delete objects, which will affect the Hibernate cache, and will have decent performance. I can perform the bulk of the logic on the server end to compute which IDs need to be removed then only transfer over the IDs to Hibernate, delete those objects and everyone is happy.

What do you think? Does this warrant a RFE?

Thank you,
Gili


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 23, 2005 12:16 pm 
Senior
Senior

Joined: Tue Mar 02, 2004 6:17 pm
Posts: 151
Nevermind. On further examination it looks like the Hibernate proxy does not retrieve the underlying data as long as you do not use any of the object's accessors so performance and memory seem to be fine. Can anyone confirm this?

Gili


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.