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 2a60b54 commit 50ca3bbCopy full SHA for 50ca3bb
source/release-notes/5.0.txt
@@ -573,6 +573,14 @@ collections.
573
574
See :ref:`lookup-uncorrelated-subquery`.
575
576
+``$sort`` Stage: Performance Improvements
577
+`````````````````````````````````````````
578
+
579
+Starting in MongoDB 5.0, the :term:`query optimizer` pushes down the results of
580
+a :pipeline:`$project` stage into the :pipeline:`$sort` stage. As a result,
581
+``$sort`` operations can require less RAM when used with the ``project`` stage
582
+and avoid ``Sort exceeded memory limit`` errors.
583
584
.. _5.0-rel-notes-auditing:
585
586
Auditing
0 commit comments