[infinispan-issues] [JBoss JIRA] (ISPN-6947) Indexing mode not compatible with multiple entitties per cache

Gustavo Fernandes (JIRA) issues at jboss.org
Thu Aug 11 10:15:03 EDT 2016


Gustavo Fernandes created ISPN-6947:
---------------------------------------

             Summary: Indexing mode not compatible with multiple entitties per cache
                 Key: ISPN-6947
                 URL: https://issues.jboss.org/browse/ISPN-6947
             Project: Infinispan
          Issue Type: Bug
          Components: Embedded Querying
            Reporter: Gustavo Fernandes


Consider a cache composed of two entities A and B, entity A is stored on RAM and entity B on Infinispan itself. The configuration to achieve that is below:

{noformat}
cacheCfg.indexing()
    .index(Index.ALL)
    .addIndexedEntity(A.class)
    .addIndexedEntity(B.class)
    .addProperty("A.directory_provider", "ram")
    .addProperty("A.indexmanager", "org.infinispan.query.indexmanager.InfinispanIndexManager")
{noformat}

The configuration Index.ALL only makes sense to RAM directory, while for InfinispanIndexManager it'd cause redundant indexing. The indexing mode should not be at cache level but at "index" level



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the infinispan-issues mailing list