Skip to content

Commit 197b16b

Browse files
committed
DOCS-489 aggregation operators and indexes
1 parent 8a41773 commit 197b16b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

source/applications/aggregation.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,21 +179,22 @@ Because you will always call :method:`aggregate` on a
179179
the aggregation pipeline, you may want to optimize the operation
180180
by avoiding scanning the entire collection whenever possible.
181181

182-
Aggregation Operators and Indexes
183-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
182+
Pipeline Operators and Indexes
183+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
184184

185185
Depending on the order in which they appear in the pipeline,
186186
aggregation operators can take advantage of indexes.
187187

188-
The following aggregation operators:
188+
The following pipeline operators take advantage of an index when they
189+
occur at the beginning of the pipeline:
189190

190191
- :agg:pipeline:`$match`
191192
- :agg:pipeline:`$sort`
192193
- :agg:pipeline:`$limit`
193194
- :agg:pipeline:`$skip`
194195

195-
can take advantage of an index when placed at the **beginning** of the pipleline or
196-
placed **before** the following aggregation operators:
196+
The above operators can also use an index when placed **before** the
197+
following aggregation operators:
197198

198199
- :agg:pipeline:`$project`
199200
- :agg:pipeline:`$unwind`

0 commit comments

Comments
 (0)