-->
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: jcs-cache and paging results
PostPosted: Thu Feb 26, 2004 4:41 am 
Newbie

Joined: Tue Dec 09, 2003 10:43 am
Posts: 7
I read some documentation about using turbine jcs-cache whith hibernate, and the behavior that the application should use for taking advantage os such a cache. If I understood well, the better approach for hitting the cache instead of querying the DB is to load objects by ID, hence using sess.iterate() instead of sess.find, and sess.filter() for filtering collections.
Let's talk about the latter method. It works fine if you have to show the entire collections, or a subset of the collection based on some query, but what about paging results ? Should I load the entire collection/list with sess.filter() and return only a subset using Java operations on list/set or whatever ? Does exists a query to pass in sess.filter() to let hibernate return just a sublist of the results ?
Any help is very appreciated

Renato


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.