-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
Fully Compatible
-
QE 2025-04-14
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Historically, in Classic Engine $group we use std::stable_sort:
As stable_sort imposes additional restrictions, it performs slightly worse than just std::sort.
And in this case we know that all keys are unique (as they are keys from a map).
So it makes no sense to use stable sort.
- is related to
-
SERVER-81571 Reconsider stable sort in sorter.cpp
-
- Closed
-