Details
-
Task
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
-
None
-
None
Description
MongoDB does not support creating new unique indexes in sharded
collections and will not allow you to shard collections with unique
indexes on fields other than the ``_id`` field.
There seems to be one notable exception to the above statement: MongoDB 3.2 supports creating a new unique index on a sharded collection if the shard key is a prefix of the new unique index.