-->
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: Batch loading from a list of identifiers?
PostPosted: Wed Mar 14, 2007 1:06 pm 
Newbie

Joined: Wed Mar 14, 2007 12:55 pm
Posts: 1
I have a list of identifiers (thousands of items) and I need to load associated objects. Currently I just iterate through the list of identifiers and call session.load() or session.get() for each. A decent number of the objects are caught by the second-level cache, but that still means I'm generating a ridiculous number of selects to populate my list.

Is there a way I can get the same behavior as batch fetching collections, where I don't have "N" selects and I still populate the objects from the second-level cache when possible?


Thanks!


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.