Skip to content

Commit 61d194e

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCS-14733 shard routing for aggregations (#340) (#352)
Co-authored-by: jason-price-mongodb <[email protected]> Co-authored-by: jason-price-mongodb <[email protected]>
1 parent cf7a55e commit 61d194e

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

source/core/aggregation-pipeline-sharded-collections.txt

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,10 @@ sharded collections.
2020
Behavior
2121
--------
2222

23-
.. versionchanged:: 3.2
24-
25-
If the pipeline starts with an exact :pipeline:`$match` on a shard key,
26-
the entire pipeline runs on the matching shard only. Previously, the
27-
pipeline would have been split, and the work of merging it would have
28-
to be done on the primary shard.
29-
30-
.. versionchanged:: 3.6
23+
If the pipeline starts with an exact :pipeline:`$match` on a
24+
:term:`shard key`, and the pipeline does not contain :pipeline:`$out` or
25+
:pipeline:`$lookup` stages, the entire pipeline runs on the matching
26+
shard only.
3127

3228
When aggregation operations run on multiple shards, the results are
3329
routed to the :binary:`~bin.mongos` to be merged, except in the
@@ -53,4 +49,3 @@ To see how the pipeline was split, include the :method:`explain
5349
:method:`db.collection.aggregate()` method.
5450

5551
.. include:: /includes/fact-optimizations-subject-to-change.rst
56-

0 commit comments

Comments
 (0)