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

Allow hashed indexes to be unique

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • 2.1.2
    • Index Maintenance
    • None
    • Query Optimization

    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

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            matulef Kevin Matulef
            Votes:
            14 Vote for this issue
            Watchers:
            18 Start watching this issue

            Dates

              Created:
              Updated: