-
Type: Question
-
Resolution: Duplicate
-
Priority: 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?
- duplicates
-
SERVER-5335 Creation of _id index should automatically add unique:true to index spec
- Backlog