Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-91281

Allow $rank window function to operate without a SortKeyPattern

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration

      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.

            Assignee:
            backlog-query-integration [DO NOT USE] Backlog - Query Integration
            Reporter:
            joseph.kanaan@mongodb.com Joe Kanaan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: