Skip to content

Commit 5035075

Browse files
jason-price-mongodbandf-mongodb
authored andcommitted
DOCS-13951 Aggregation pipeline length limit
1 parent a172d09 commit 5035075

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

source/core/aggregation-pipeline-limits.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ The limit only applies to the returned documents; during the pipeline
3131
processing, 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

source/release-notes/5.0-compatibility.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
6468
Deprecations
6569
~~~~~~~~~~~~
6670

0 commit comments

Comments
 (0)