-->
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.  [ 1 post ] 
Author Message
 Post subject: How do I find new elements in PostCollectionUpdateEvent
PostPosted: Fri Jan 14, 2011 1:59 pm 
Newbie

Joined: Fri Jan 14, 2011 1:52 pm
Posts: 1
Short of comparing the new collection state from the snapshot by nested iteration (really bad for large collections) is there a more efficient way
to find the new elements added to a collection in the onPostUpdateCollection method?

For deleted elements I'm using the getOrphans call on the collection which also requires the snapshot.

How efficient in general are collection updates? Does the entire collection get loaded into memory when adding or deleting elements?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.