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

Investigate updating heap-based $maxN/$topN in SBE group implementation to multiset/multimap

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Execution
    • QE 2023-11-27

      The SBE implementation of $minN/$topN in group stage is implemented using a heap. As part of the implementation in SBE of $minN/$topN for the window stage, the multiset/multimap data structure was introduced.  We should replace the heap with multiset/multimap if it has performance gains. 

            Assignee:
            projjal.chanda@mongodb.com Projjal Chanda
            Reporter:
            foteini.alvanaki@mongodb.com Foteini Alvanaki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: