Skip to content

Commit adbdadd

Browse files
authored
The explain() output on unsharded collection is under the 'shards' field. (#5493)
* add note to release notes and fix tense issue * moved new info to 7.2 compatibilty page
1 parent 65eceed commit adbdadd

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

source/reference/method/db.collection.aggregate.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ The operation returns a document that details the processing of the
348348
aggregation pipeline. For example, the document may show, among other
349349
details, which index, if any, the operation used. [#agg-index-filters]_
350350
If the ``orders`` collection is a sharded collection, the document
351-
would also show the division of labor between the shards and the merge
351+
also shows the division of labor between the shards and the merge
352352
operation, and for targeted queries, the targeted shards.
353353

354354
.. note:: The intended readers of the ``explain`` output document are humans, and

source/release-notes/7.2-compatibility.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ Compatibility Changes in MongoDB 7.2
2121
Backward-Incompatible Features
2222
------------------------------
2323

24+
Aggregation on Unsharded Collections
25+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26+
27+
Starting in MongoDB 7.2, the output of
28+
:ref:`explain().aggregate() <example-aggregate-method-explain-option>`
29+
on sharded clusters is the same for both sharded
30+
and unsharded collections. The output is under the ``shards`` field.
31+
2432
General Changes
2533
---------------
2634

0 commit comments

Comments
 (0)