@@ -116,6 +116,9 @@ MongoDB 6.0 introduces the following aggregation operators:
116
116
- Returns the ``n`` smallest values in an array.
117
117
Distinct from the :group:`$minN` accumulator.
118
118
119
+ * - :expression:`$sortArray`
120
+ - Sorts an array based on its elements.
121
+
119
122
* - :group:`$top`
120
123
- Returns the top element within a group according to the specified
121
124
sort order.
@@ -125,9 +128,6 @@ MongoDB 6.0 introduces the following aggregation operators:
125
128
- Returns an aggregation of the top ``n`` elements within a group,
126
129
according to the specified sort order.
127
130
128
- * - :expression:`$sortArray`
129
- - Sorts an array based on its elements.
130
-
131
131
* - :expression:`$tsIncrement`
132
132
- .. include:: /includes/tsIncrement-introduction.rst
133
133
@@ -139,15 +139,6 @@ MongoDB 6.0 introduces the following aggregation operators:
139
139
140
140
.. include:: /includes/5.1-fact-sharded-lookup-graphlookup.rst
141
141
142
- |sbe-title| Can Execute ``$group`` and ``$lookup`` Stages
143
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
144
-
145
- Starting in version 6.0, MongoDB uses the |sbe| to execute eligible
146
- :pipeline:`$group` and :pipeline:`$lookup` stages when certain
147
- conditions are met.
148
-
149
- For more information, see :ref:`sbe-pipeline-optimizations`.
150
-
151
142
.. _6.0-rel-notes-change-streams:
152
143
153
144
Change Streams
@@ -246,6 +237,39 @@ earlier versions of MongoDB, the default chunk size is 64 megabytes.
246
237
Starting in MongoDB 6.0, the :dbcommand:`enableSharding` command is
247
238
no longer required to shard a collection.
248
239
240
+ .. _6.0-rel-notes-sbe:
241
+
242
+ Slot-Based Query Execution Engine
243
+ ---------------------------------
244
+
245
+ Starting in MongoDB 5.1, MongoDB uses a new query execution engine for
246
+ eligible queries, called the slot-based query execution engine. If the
247
+ slot-based query execution engine is used, new fields are included in
248
+ the query explain plan output.
249
+
250
+ - The new query execution engine is used if possible.
251
+
252
+ - If the new query execution engine is used, new fields are included in
253
+ the :ref:`query explain plan output <explain-results-5.1-later>`.
254
+
255
+ |sbe-title| Can Execute ``$group`` and ``$lookup`` Stages
256
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
257
+
258
+ Starting in version 6.0, MongoDB uses the |sbe| to execute eligible
259
+ :pipeline:`$group` and :pipeline:`$lookup` stages when certain
260
+ conditions are met.
261
+
262
+ For more information, see :ref:`sbe-pipeline-optimizations`.
263
+
264
+ Set |sbe-title| Plan Cache Size
265
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
266
+
267
+ You can set the size of the :ref:`plan cache
268
+ <read-operations-query-optimization>` for the new query engine with the
269
+ :parameter:`planCacheSize` parameter.
270
+
271
+ .. include:: /includes/fact-sbe-plan-cache-motivation.rst
272
+
249
273
Stable API
250
274
----------
251
275
0 commit comments