[infinispan-issues] [JBoss JIRA] Updated: (ISPN-458) Tweak for query-cache via hibernate.hbm.xml needed
Niktia Koksharov (JIRA)
jira-events at lists.jboss.org
Tue May 25 07:14:54 EDT 2010
[ https://jira.jboss.org/browse/ISPN-458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Niktia Koksharov updated ISPN-458:
----------------------------------
Description:
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);
was: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.
> Tweak for query-cache via hibernate.hbm.xml needed
> --------------------------------------------------
>
> Key: ISPN-458
> URL: https://jira.jboss.org/browse/ISPN-458
> Project: Infinispan
> Issue Type: Sub-task
> Components: Core API
> Affects Versions: 4.0.0.Final
> Reporter: Niktia Koksharov
> Assignee: Manik Surtani
> Priority: Critical
> Fix For: 4.1.0.CR1
>
>
> 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: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list