@@ -51,20 +51,22 @@ The ``explain`` results present the query plans as a tree of stages.
51
51
}
52
52
},
53
53
54
- Each stage passes its results (i.e. documents or index keys) to the
54
+ Each stage passes its resulting documents or index keys to the
55
55
parent node. The leaf nodes access the collection or the indices. The
56
56
internal nodes manipulate the documents or the index keys that result
57
57
from the child nodes. The root node is the final stage from which
58
58
MongoDB derives the result set.
59
59
60
- Stages are descriptive of the operation; e.g.
60
+ Stages are descriptive of the operation. For example:
61
61
62
62
- ``COLLSCAN`` for a collection scan
63
63
64
64
- ``IXSCAN`` for scanning index keys
65
65
66
66
- ``FETCH`` for retrieving documents
67
67
68
+ - ``GROUP`` for grouping douments with :pipeline:`$group`
69
+
68
70
- ``SHARD_MERGE`` for merging results from shards
69
71
70
72
- ``SHARDING_FILTER`` for filtering out orphan documents from shards
@@ -207,6 +209,11 @@ This section shows the ``explain`` output for MongoDB 5.1 and later.
207
209
instance, an ``IXSCAN`` stage will include the index bounds
208
210
along with other data specific to the index scan.
209
211
212
+ Starting in MongoDB 5.2, MongoDB can execute :pipeline:`$group`
213
+ stages using the :ref:`slot-based execution query engine
214
+ <5.1-rel-notes-sbe>`. When the |sbe-short| is used for
215
+ :pipeline:`$group`, this field value is ``GROUP``.
216
+
210
217
.. data:: explain.queryPlanner.winningPlan.queryPlan.planNodeId
211
218
212
219
Unique integer field that identifies each stage in the execution
@@ -217,7 +224,7 @@ This section shows the ``explain`` output for MongoDB 5.1 and later.
217
224
218
225
.. data:: explain.queryPlanner.winningPlan.slotBasedPlan
219
226
220
- Document with information about the slot based query execution plan
227
+ Document with information about the slot based query execution plan
221
228
tree and stages.
222
229
223
230
.. versionadded:: 5.1
0 commit comments