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

Correct Documentation of Unique Indexs for Sharded Collections

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • v1.3.1
    • None
    • manual

    Description

      footnote 1 makes it seem like we let you create a unique index on a sharded collection and just fail to enforce it. We don't. Creating new unique indexes will fail, and we refuse to shard collections with unique indexes on fields other than _id. The footnote as-is (and much of this page) only applies to the _id index.

      Also the Warning should probably be presented as a 3rd option: using guaranteed unique identifiers.

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 48 weeks, 2 days ago