Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12660

Improve context for building unique indexes on sharded collections

      Description

      Unique indexes on sharded collections can only be enforced on the shard key or a prefix of the shard key.

      The Behaviour section of the Unique Index page mentions building unique indexes on replica sets and sharded clusters: https://docs.mongodb.com/manual/core/index-unique/#building-unique-index-on-replica-sets-and-sharded-clusters.

      However, the caveats for unique indexes in sharded clusters are a fair distance down the page: https://docs.mongodb.com/manual/core/index-unique/#sharded-clusters-and-unique-indexes.

      These two behaviour notes should be adjacent for context.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

            Assignee:
            Unassigned Unassigned
            Reporter:
            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              1 year, 25 weeks, 4 days ago