Use Sorter instead of SorterFile and iterators when spilling

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

      Stages like Group or Spool when spilling, manually maintain a vector of sorter file iterators instead of just using higher level interface: Sorter itself, that already have all this logic.

      This leads to code duplication and complicates potential improvements like SERVER-99562

      It also prevents this stages of using sorter features like MergeableSorter that automatically merges spills if file iterators themself start to consume a significant amount of memory.

            Assignee:
            Unassigned
            Reporter:
            Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: