Skip to content

Commit fd42c6e

Browse files
authored
Adds new "specificShard" info and changes formatting (#5251)
* replacing PR 5229 * review changes * final review change
1 parent 803b0ef commit fd42c6e

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

source/core/sharded-cluster-query-router.txt

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,18 @@ randomly-selected shard in the set of shards targeted by the aggregation.
7070
For more information on how the work of aggregation is split among
7171
components of a sharded cluster query, use ``explain:true`` as a
7272
parameter to the :method:`~db.collection.aggregate()` call. The
73-
return includes three json objects. ``mergeType`` shows where the
74-
stage of the merge happens ("primaryShard", "anyShard", or "mongos").
75-
``splitPipeline`` shows which operations in your pipeline have run on
76-
individual shards. ``shards`` shows the work each shard has done.
73+
return includes three JSON objects:
74+
75+
- ``mergeType`` shows where the
76+
stage of the merge happens ("primaryShard", "anyShard", "specificShard",
77+
or "mongos"). When ``mergeType`` is ``specificShard``, the aggregate
78+
output includes a ``mergeShard`` property that contains the shard ID of the
79+
merging shard.
80+
81+
- ``splitPipeline`` shows which operations in your pipeline have
82+
run on individual shards.
83+
84+
- ``shards`` shows the work each shard has done.
7785

7886
In some cases, when the :term:`shard key` or a prefix of the shard key
7987
is a part of the query, the :binary:`~bin.mongos` performs a

0 commit comments

Comments
 (0)