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

Allow hashed indexes to be unique

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: 2.1.2
    • Fix Version/s: Backlog
    • Component/s: Indexing
    • Labels:
      None

      Description

      Currently hashed indexes are not allowed to be unique (due to potential hash collisions on the keys). Uniqueness can be enforced on a field if a non-hashed index is created on the same field, but this is inefficient.

      It should be possible to create a unique hashed index by checking for a match on the actual document (not just on the key in the index) before insertion.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                12 Vote for this issue
                Watchers:
                16 Start watching this issue

                Dates

                • Created:
                  Updated: