It does not really make sense to create a capped collection with additional constraints such as having unique indexes. In a replica set, capped collections are trimmed on a per-insert basis on every node and this may cause issues enforcing the unique index constraints as inserts are replicated from the primary to secondary nodes.
disallow unique indexes on capped collections
- Assignee:
-
[DO NOT USE] Backlog - Storage Execution Team
- Reporter:
-
Benety Goh
- Votes:
-
0 Vote for this issue - Watchers:
-
4 Start watching this issue
- Created:
- Updated:
- Resolved: