Skip to content

Commit 7fd0850

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCS-13918 aggregation optimizer (#481) (#487)
* 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 <jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com> Co-authored-by: jason-price-mongodb <jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com>
1 parent e94a8a4 commit 7fd0850

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
@@ -454,6 +454,10 @@ The following list shows some pipeline stages that can use indexes:
454454
:pipeline:`$geoNear` can use a geospatial index. :pipeline:`$geoNear`
455455
must be the first stage in an aggregation pipeline.
456456

457+
Starting in MongoDB 4.2, in some cases, an aggregation pipeline can use
458+
a ``DISTINCT_SCAN`` index plan, which typically has higher performance
459+
than ``IXSCAN``.
460+
457461
Indexes can :ref:`cover <read-operations-covered-query>` queries in an
458462
aggregation pipeline. A covered query uses an index to return all of the
459463
documents and has high performance.

0 commit comments

Comments
 (0)