-->
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: mySQL QueryCache and Hibernate
PostPosted: Mon Apr 24, 2006 12:08 pm 
Newbie

Joined: Mon Apr 24, 2006 11:43 am
Posts: 4
Location: Edinburgh
Hibernate version: 3.1

Name and version of the database you are using: mySQL 5.0.11

We are currently wrinting something using Jboss, Hibernate and mySQL and we were looking at caching strategies. mySQL provides some nice fast QueryCaching that we had used before. We did a nice simple operation in Hibernate and right enough the query shows up in the mySQL logs. The strange thing is it never hits the mySQL QueryCache, if we execute the query form the log in query browser then it hit the Querycache fine, but no query from Hibernate is being cached.

I've been searching though the documentation but I can't find any referneces as to why this might be in either Hibernate nor mySQL documentation. Is it more worth our while ignoring the mySQL caching and concentrate on Hibernate second level cache.

Thanks for your help in advance.

Andrew Aitken


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 02, 2006 2:26 pm 
Regular
Regular

Joined: Wed Jun 29, 2005 11:14 pm
Posts: 119
Location: København
I have similar issues (please see my other post)... Did you get anywhere?

My findings are it caches query results until you start updating - then it's DB hits all the way.


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.