Hibernate version: 3.2.5.ga
Name and version of the database you are using: Mysql 5.0
I have been Doing performance testing of my application. And i am looking at the stats generated by org.hibernate.stat.Statistics to look at the stats.
It seem like the query cache is not used at all. Even for same equeries that get executed more than 1000 times the Cache put and hit count are zero!
Whats wrong ? Are the stats correct? Or i am not using Query cache at all? FI not Why?
My Hibernate is configured like :
Code:
<hibernate-configuration>
<session-factory>
<property name="hibernate.dialect">org.hibernate.dialect.MySQL5Dialect</property>
<property name="hibernate.connection.datasource">SOME JINDI HERE</property>
<property name="hibernate.cache.provider_class">net.sf.ehcache.hibernate.SingletonEhCacheProvider</property>
<property name="hibernate.show_sql">true</property>
</session-factory>
</hibernate-configuration>
Any sort of help will be appreciated.
Thanks,
Pike