Skip to content

Be more precise about in-memory sorting limit #2010

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

Closed
wants to merge 1 commit into from
Closed
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
5 changes: 3 additions & 2 deletions source/reference/limits.txt
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,9 @@ Operations
.. limit:: Sorted Documents

MongoDB will only return sorted results on fields without an index
*if* the sort operation uses less than 32 megabytes of memory.

*if* the combined size of all documents to be sorted (plus some overhead)
is less than 32 megabytes.

.. _limit-agg-sort:

.. limit:: Aggregation Pipeline Operation
Expand Down