File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -86,8 +86,11 @@ Fields
86
86
87
87
.. stats:: size
88
88
89
- The size of the collection. The ``scale`` argument affects this
90
- value.
89
+ The size of the data stored in this collection. This value does not
90
+ include the size of any indexes associated with the collection,
91
+ which the :stats:`totalIndexSize` field reports.
92
+
93
+ The ``scale`` argument affects this value.
91
94
92
95
.. stats:: avgObjSize
93
96
@@ -110,9 +113,15 @@ Fields
110
113
111
114
.. stats:: nindexes
112
115
113
- The number of indexes on the collection. On standard, non-capped
114
- collections, there is always at least one index on the primary key
115
- (i.e. :term:`_id`).
116
+ The number of indexes on the collection. All collections have at
117
+ least one index on the :term:`_id` field.
118
+
119
+ .. versionchanged:: 2.2
120
+ Before 2.2, capped collections did not necessarily have an
121
+ index on the ``_id`` field, and some capped collections created
122
+ with pre-2.2 versions of :program:`mongod` may not have an
123
+ ``_id`` index.
124
+
116
125
117
126
.. stats:: lastExtentSize
118
127
You can’t perform that action at this time.
0 commit comments