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

XMLWordPrintableJSON

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

      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
            Reporter:
            Foteini Alvanaki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: