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:
127127Because the index "covers" the query, MongoDB can both match the
128128:ref:`query conditions <read-operations-query-document>` **and** return
129129the 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 .
131131
132132Querying *only* the index can be much faster than querying documents
133133outside 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:
5454 - all the fields returned in the documents that match the query are
5555 in the same index.
5656
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
5858 :ref:`query conditions <read-operations-query-document>` **and**
5959 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.
6263
6364 See :ref:`indexes-covered-queries` for more information.
6465
Original file line number Diff line number Diff line change @@ -156,7 +156,9 @@ Core Explain Output
156156 Specifies the total number of documents scanned during the query.
157157 The :data:`nscannedObjects` may be lower than :data:`nscanned`, such
158158 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.
160162
161163.. data:: nscanned
162164
You can’t perform that action at this time.
0 commit comments