Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-6947

Indexing mode not compatible with multiple entities per cache

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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:

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

      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

              gfernand@redhat.com Gustavo Fernandes (Inactive)
              gfernand@redhat.com Gustavo Fernandes (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: