We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce2e735 commit d86232aCopy full SHA for d86232a
source/release-notes/5.0.txt
@@ -576,6 +576,14 @@ collections.
576
577
See :ref:`lookup-uncorrelated-subquery`.
578
579
+``$sort`` Stage: Performance Improvements
580
+`````````````````````````````````````````
581
+
582
+Starting in MongoDB 5.0, the :term:`query optimizer` pushes down the results of
583
+a :pipeline:`$project` stage into the :pipeline:`$sort` stage. As a result,
584
+``$sort`` operations can require less RAM when used with the ``project`` stage
585
+and avoid ``Sort exceeded memory limit`` errors.
586
587
.. _5.0-rel-notes-auditing:
588
589
Auditing
0 commit comments