Skip to content

DOCS-13951 Aggregation pipeline length limit #4797

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions source/core/aggregation-pipeline-limits.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ The limit only applies to the returned documents; during the pipeline
processing, the documents may exceed this size. The
:method:`db.collection.aggregate()` method returns a cursor by default.

Number of Stages Restrictions
-----------------------------

.. versionchanged:: 5.0

MongoDB 5.0 limits the number of :doc:`aggregation pipeline stages
</reference/operator/aggregation-pipeline>` allowed in a single pipeline
to 1000.

.. _agg-memory-restrictions:

Expand Down
4 changes: 4 additions & 0 deletions source/release-notes/5.0-compatibility.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ General Changes
:method:`db.collection.reIndex()` shell method may only be run on
:term:`standalone` instances.

- Starting in MongoDB 5.0, the number of :doc:`aggregation pipeline
stages </reference/operator/aggregation-pipeline>` allowed in a single
pipeline is limited to 1000.

Deprecations
~~~~~~~~~~~~

Expand Down