File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,14 @@ The limit only applies to the returned documents; during the pipeline
31
31
processing, the documents may exceed this size. The
32
32
:method:`db.collection.aggregate()` method returns a cursor by default.
33
33
34
+ Number of Stages Restrictions
35
+ -----------------------------
36
+
37
+ .. versionchanged:: 5.0
38
+
39
+ MongoDB 5.0 limits the number of :doc:`aggregation pipeline stages
40
+ </reference/operator/aggregation-pipeline>` allowed in a single pipeline
41
+ to 1000.
34
42
35
43
.. _agg-memory-restrictions:
36
44
Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ General Changes
61
61
:method:`db.collection.reIndex()` shell method may only be run on
62
62
:term:`standalone` instances.
63
63
64
+ - Starting in MongoDB 5.0, the number of :doc:`aggregation pipeline
65
+ stages </reference/operator/aggregation-pipeline>` allowed in a single
66
+ pipeline is limited to 1000.
67
+
64
68
Deprecations
65
69
~~~~~~~~~~~~
66
70
You can’t perform that action at this time.
0 commit comments