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: New -to-many fetch mode retrieving children ids only
PostPosted: Wed Aug 05, 2009 7:50 am 
Newbie

Joined: Thu Jun 11, 2009 4:31 am
Posts: 2
What I'm proposing is a -to-many association fetch mode (maybe lazy mode) where only children ids would be fetched when we fetch the collection, rather than whole children entities, as it is the case now.

Why ? Suppose we use a second level cache for children entities, and that we warm this cache up (fill it up) at application start : We will still fetch these children entites each time we fetch a collection of such entites, althought all of them were available in the second level cache, and possibly take time to fetch !

With this fetch mode, we would select the children ids list, and then get the entities one by one, allowing for using the cache.
The fetch could also be used to warm collections caches up (these contain lists of ids, if I'm not mistaking...?)

Maybe there is a way to get around this, but I found neither that was satisfactory.
The "best" I found is to link the father entity to a collection of "id entities", themselves linked (one-to-one) to the "real", big entity. But this is not handy.

So I think I'll create a JIRA, unless somebody points the solution to me, or tells me a JIRA issue already exists...?

Thanks for your attention ! Feel free to ask for any explanation.


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.