-->
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: Regarding Hibernate query cache
PostPosted: Sat Apr 27, 2013 2:41 pm 
Newbie

Joined: Sun Apr 21, 2013 12:35 pm
Posts: 4
Hi all,

I am trying to understand the following:

1. Is second level cache needs to be enabled for an application to use query cache?
2. How can i check whether my query comes from cache?

Regards,
Shomit


Top
 Profile  
 
 Post subject: Re: Regarding Hibernate query cache
PostPosted: Sun Apr 28, 2013 3:49 am 
Regular
Regular

Joined: Wed Apr 10, 2013 1:02 am
Posts: 50
Yes u need to enable second level cache for caching your query. To check first enable second level cache in cfg and obtain hibernate statistics from session interface.

_________________
Regards
Akash Miital
http://akash.thegrassroots.co.in/hibernate/


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.