Skip to content

Commit 8c04f8b

Browse files
committed
DOCS-956 covered index
1 parent 64dc996 commit 8c04f8b

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

source/applications/indexes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ A covered query is a query in which:
127127
Because the index "covers" the query, MongoDB can both match the
128128
:ref:`query conditions <read-operations-query-document>` **and** return
129129
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.
131131

132132
Querying *only* the index can be much faster than querying documents
133133
outside of the index. Index keys are typically smaller than the

source/core/indexes.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

source/reference/explain.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)