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 a7f02d9 commit 6c96774Copy full SHA for 6c96774
source/release-notes/5.0.txt
@@ -439,6 +439,7 @@ Issues fixed:
439
440
- :ref:`5.0.1-changelog`
441
442
+
443
5.0.0 - Jul 13, 2021
444
~~~~~~~~~~~~~~~~~~~~
445
@@ -576,6 +577,14 @@ collections.
576
577
578
See :ref:`lookup-uncorrelated-subquery`.
579
580
+``$sort`` Stage: Performance Improvements
581
+`````````````````````````````````````````
582
583
+Starting in MongoDB 5.0, the :term:`query optimizer` pushes down the results of
584
+a :pipeline:`$project` stage into the :pipeline:`$sort` stage. As a result,
585
+``$sort`` operations can require less RAM when used with the ``project`` stage
586
+and avoid ``Sort exceeded memory limit`` errors.
587
588
Aggregation Metrics
589
```````````````````
590
0 commit comments