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
3131processing, the documents may exceed this size. The
3232:method:`db.collection.aggregate()` method returns a cursor by default.
3333
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.
3442
3543.. _agg-memory-restrictions:
3644
Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ General Changes
6161 :method:`db.collection.reIndex()` shell method may only be run on
6262 :term:`standalone` instances.
6363
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+
6468Deprecations
6569~~~~~~~~~~~~
6670
You can’t perform that action at this time.
0 commit comments