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

Allow hashed indexes to be unique

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.1.2
    • Component/s: Index Maintenance
    • None
    • Query Optimization

      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.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            matulef Kevin Matulef
            Votes:
            14 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated: