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 fc5c029 commit 4262b93Copy full SHA for 4262b93
source/release-notes/5.0.txt
@@ -580,6 +580,14 @@ collections.
580
581
See :ref:`lookup-uncorrelated-subquery`.
582
583
+``$sort`` Stage: Performance Improvements
584
+`````````````````````````````````````````
585
+
586
+Starting in MongoDB 5.0, the :term:`query optimizer` pushes down the results of
587
+a :pipeline:`$project` stage into the :pipeline:`$sort` stage. As a result,
588
+``$sort`` operations can require less RAM when used with the ``project`` stage
589
+and avoid ``Sort exceeded memory limit`` errors.
590
591
.. _5.0-rel-notes-auditing:
592
593
Auditing
0 commit comments