-->
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: advice on preloading one-to-many
PostPosted: Tue Oct 14, 2003 11:04 am 
Beginner
Beginner

Joined: Thu Sep 04, 2003 5:38 pm
Posts: 29
I want to preload some tables into the jcs cache, and doing so ok for most by just finding all.

However, I'm not finding the right way to do this on a one-to-many pair of tables.

If I load the many side table first, then the one, each of the results in the one side does a query for the set inside, which I am trying to avoid. I realize it will get just record results and hit that many side cache, but I am trying to avoid all the individual db calls.

rick


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 14, 2003 3:30 pm 
Beginner
Beginner

Joined: Thu Sep 04, 2003 5:38 pm
Posts: 29
never mind! I forgot about the fetch syntax, now it is just swell!


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.