-->
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.  [ 5 posts ] 
Author Message
 Post subject: Hiberante second level cache
PostPosted: Fri Apr 18, 2008 2:38 pm 
Newbie

Joined: Fri Apr 18, 2008 9:39 am
Posts: 3
Is hibernate second level object cache (query caching turned off) supposed to work only for object loading (get or load) and not for queries(HQL)?


Top
 Profile  
 
 Post subject: Re: Hiberante second level cache
PostPosted: Fri Apr 18, 2008 2:44 pm 
Expert
Expert

Joined: Wed Apr 11, 2007 11:39 am
Posts: 735
Location: Montreal, QC
abhirama wrote:
Is hibernate second level object cache (query caching turned off) supposed to work only for object loading (get or load) and not for queries(HQL)?



That's correct.



Farzad-


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 2:47 pm 
Newbie

Joined: Fri Apr 18, 2008 9:39 am
Posts: 3
Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 2:49 pm 
Expert
Expert

Joined: Wed Apr 11, 2007 11:39 am
Posts: 735
Location: Montreal, QC
abhirama wrote:
Thanks.


One more thing that might help is that when query cache is enabled entities will be fetched from L2 cache since query cache only keeps entity ids and not entities themselves.


Farzad-


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 18, 2008 2:53 pm 
Newbie

Joined: Fri Apr 18, 2008 9:39 am
Posts: 3
Query caching does not suit my purposes as the tables I am interested in are not static. They are updated frequently.

Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.