[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5260?page=c...
]
Nikita Koksharov commented on HHH-5260:
---------------------------------------
What I'm trying to understand is what is it that you're trying
to gain out of having a different cache instance for each query region? Is it setting
different >eviction settings for each query region?
Exactly, Clader. You are right, I want to have this opportunity.
To be able to do something similar with Infinispan yeah, we'd need
to implement a change similar to what you suggest, where each query is stored under a
cache >instance with that region name. You'd then be able maxEntries,
lifespan...etc and other type of eviction settings for that particular region
So what we waiting for? Just do it :)
Tweak for query-cache via hibernate.hbm.xml needed
--------------------------------------------------
Key: HHH-5260
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5260
Project: Hibernate Core
Issue Type: New Feature
Components: caching (L2)
Reporter: Galder Zamarreno
Assignee: Galder Zamarreno
From Niktia Koksharov in
https://jira.jboss.org/browse/ISPN-458:
"In current implementation of hibernate-infinispan we can tune only entity and
collection settings via hibernate.xml.cfg. But tuning in same way for queries needed too.
In current version there are always the same cache region for all queries (look at
org.hibernate.cache.infinispan.InfinispanRegionFactory.buildQueryResultsRegion) and
it's incorrect.
In org.hibernate.cache.infinispan.InfinispanRegionFactory.buildQueryResultsRegion
Replace those lines:
String cacheName = typeOverrides.get(QUERY_KEY).getCacheName();
CacheAdapter cacheAdapter =
CacheAdapterImpl.newInstance(manager.getCache(cacheName));
To:
Cache cache = getCache(regionName, QUERY_KEY, properties);
CacheAdapter cacheAdapter = CacheAdapterImpl.newInstance(cache); "
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira