Skip to content

Commit 2b6e755

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCS-13918 aggregation optimizer (#481) (#488)
* DOCS-13918-aggregation-optimizer * DOCS-13918-aggregation-optimizer * DOCS-13918-aggregation-optimizer * DOCS-13918-aggregation-optimizer * DOCS-13918-aggregation-optimizer Co-authored-by: jason-price-mongodb <[email protected]> Co-authored-by: jason-price-mongodb <[email protected]>
1 parent 15d02c9 commit 2b6e755

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/core/aggregation-pipeline-optimization.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,10 @@ The following list shows some pipeline stages that can use indexes:
435435
:pipeline:`$geoNear` can use a geospatial index. :pipeline:`$geoNear`
436436
must be the first stage in an aggregation pipeline.
437437

438+
Starting in MongoDB 4.2, in some cases, an aggregation pipeline can use
439+
a ``DISTINCT_SCAN`` index plan, which typically has higher performance
440+
than ``IXSCAN``.
441+
438442
Indexes can :ref:`cover <read-operations-covered-query>` queries in an
439443
aggregation pipeline. A covered query uses an index to return all of the
440444
documents and has high performance.

0 commit comments

Comments
 (0)