File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ A covered query is a query in which:
127
127
Because the index "covers" the query, MongoDB can both match the
128
128
:ref:`query conditions <read-operations-query-document>` **and** return
129
129
the results using only the index; MongoDB does not need to look at
130
- documents outside of the index.
130
+ the documents, only the index, to fulfill the query .
131
131
132
132
Querying *only* the index can be much faster than querying documents
133
133
outside of the index. Index keys are typically smaller than the
Original file line number Diff line number Diff line change @@ -54,11 +54,12 @@ MongoDB indexes have the following core features:
54
54
- all the fields returned in the documents that match the query are
55
55
in the same index.
56
56
57
- When an index covers a query, the database can both match the
57
+ When an index covers a query, the server can both match the
58
58
:ref:`query conditions <read-operations-query-document>` **and**
59
59
return the results using only the index; MongoDB does not need to
60
- look at documents outside of the index. Querying the index can be
61
- faster than querying the documents outside of the index.
60
+ look at the documents, only the index, to fulfill the query.
61
+ Querying the index can be faster than querying the documents outside
62
+ of the index.
62
63
63
64
See :ref:`indexes-covered-queries` for more information.
64
65
Original file line number Diff line number Diff line change @@ -156,7 +156,9 @@ Core Explain Output
156
156
Specifies the total number of documents scanned during the query.
157
157
The :data:`nscannedObjects` may be lower than :data:`nscanned`, such
158
158
as if the index :ref:`covers <indexes-covered-queries>` a query. See
159
- :data:`indexOnly`.
159
+ :data:`indexOnly`. Additionally, the :data:`nscannedObjects` may be
160
+ lower than :data:`nscanned` in the case of multikey index on an
161
+ array field with duplicate documents.
160
162
161
163
.. data:: nscanned
162
164
You can’t perform that action at this time.
0 commit comments