Currently the operator requires a SortKeyPattern to generate a SortKeyGenerator to generate values to compare. If the inputs given to the accumulator were already sort keys, which should be available via {$meta: "sortKey"}, then it should be faster. This will not only boost some performance, and make it easier to build syntactic sugar for a $rankFusion stage, since we won't have to generate and pass along a sort pattern.
- depends on
-
SERVER-98453 Refactor $sort to make it easier to add a new option
-
- Closed
-
- is depended on by
-
SERVER-99039 Support collation for new $rank implementation (sort key based)
-
- Closed
-
-
SERVER-98562 Allow $rank with compound sortBy
-
- Backlog
-
-
SERVER-98563 Use sort key metadata in PartitionIterator
-
- Backlog
-
-
SERVER-95168 Implement $setWindowFields version of desugaring for $rankFusion
-
- Closed
-
- is related to
-
SERVER-99529 Re-enable window functions in SBE
-
- Backlog
-