While doing some performance tuning in my application, I noticed that the sleep cache is never used.
I am sure I configured it correctly:
- hibernate.cache.provider_class = org.hibernate.cache.EhCacheProvider
- hibernate.cache.use_query_cache = true
- I use
setCacheable(true)for queries that I want to cache
I set up a simple stress test when I perform the same set of operations over and over in multiple threads. When I check the hibernation statistics, it turns out that the hitCount request cache is zero!
What am I missing?
EDIT:
If you all ask: I installedhibernate.generate_statistics = true
source
share