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

Remote query: add option to disable default/legacy indexing per schema file

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 9.3.0.CR1, 9.3.0.Final
    • None
    • None
    • None

    Description

      All types that are not annotated are currently fully indexed for backward compat with first version of remote query (which did not have protobuf annotations to control indexing).

      This behaviour is very inefficient and confusing for users that do not intend to use indexing (non-indexed query works anyway).

      Given the history of this behaviour we cannot remove it until next major version. Until then we can offer the choice of disabling it per each schema file via a boolean protobuf file-level option named 'enable_legacy_indexing' 'indexed_by_default', which when absent is considered to default to true. Setting it to false will disable indexing of types that do not have indexing annotations.

      Whenever an entry is indexed using default indexing a warning will be logged in order to motivate people to switch to using proper annotations.

      Attachments

        Activity

          People

            anistor Adrian Nistor (Inactive)
            anistor Adrian Nistor (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: