-->
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: Hibernate Search: Cache Queries/Results
PostPosted: Wed May 25, 2011 7:07 pm 
Newbie

Joined: Thu May 19, 2011 8:04 pm
Posts: 6
Hi,

Is there a way to cache Query results? Especially for common query terms used. Is there a limitation on its use? I am referring to Hibernate 3.1

Thanks,


Top
 Profile  
 
 Post subject: Re: Hibernate Search: Cache Queries/Results
PostPosted: Wed May 25, 2011 9:05 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
you should notice already that repeating the same query a second time is dramatically faster then the first execution: many caches especially at query level are applied transparently.
Unless you use projections, the results are then extracted and transformed in Hibernate identifiers to load objects from the database, at this point any hibernate second level cache will help as well, but to have Search use it you'll need a recent version.

There's also the option to define filters: filters are cacheable, and you can transform any executed Query in a filter to reuse it: see QueryWrapperFilter.

_________________
Sanne
http://in.relation.to/


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.