File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,15 @@ is a 12-byte unique identifiers suitable for use as the value of an
94
94
have an ``_id`` field by default. In 2.2, all capped collections
95
95
have an ``_id`` field, except those in the ``local``
96
96
:term:`database`. See the :ref:`release notes
97
- <2.2-id-indexes-capped-collections>` for more information.
97
+ <2.2-id-indexes-capped-collections>` for more
98
+ information.
99
+
100
+ Additionally, MongoDB does not create indexes on capped collections
101
+ by default do not have an index on the ``_id`` field. In the
102
+ course of replicating a capped collection, :term:`secondary`
103
+ members of the set will create an ``_id`` index. If you specify
104
+ ``autoIndexId: true`` when creating a capped collection MongoDB
105
+ will create an ``_id`` index on this collection.
98
106
99
107
.. TODO fix the above when a full capped-collection page exists.
100
108
You can’t perform that action at this time.
0 commit comments