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

Indexing mode not compatible with multiple entities per cache

    XMLWordPrintable

Details

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              gfernand@redhat.com Gustavo Fernandes (Inactive)
              gfernand@redhat.com Gustavo Fernandes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: