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

_id index is not displayed as unique

    • Type: Icon: Question Question
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 4.0.9
    • Component/s: None
    • None

      The automatically generated index on _id is a uniqe index as far as I have read and tried.
      But if you do db.collection.getIndexes() in the mongo shell, the index does not show "unique" : true, like other unique indexes do.
      This seems a bit confusing to me.
      Shouldn't the _id index be shown as unique, as it actually is a unique index?

            Assignee:
            Unassigned Unassigned
            Reporter:
            vampire Björn Kautler
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: