Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-484

Sparse Indexes (WAS: Add an "ignore missing" option to indexes)

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.7.4
    • Affects Version/s: None
    • Component/s: Index Maintenance
    • Labels:
      None
    • Environment:
      All

      The proposal is for another index option to be added that marks an index as not including any documents with missing index values in the index. For composite indexes this would ignore any documents where all the index values are missing. I would suggest if the index values are present but set to null they probably should be included in the index.

      This would save considerable space and time when inserting into polymorphic collections where an index is only designed to affect a subset of the collection.

      This would provide a large benefit to unique indexes, allowing a unique index to be created where only a percentage of the records in a collection are eligible to participate in the index. Currently it is not apparantly possible to add a unique index to a polymorphic collection where many records do not have the field to be indexed.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            keithbranton Keith Branton
            Votes:
            25 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:
              Resolved: