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

Use Sorter instead of SorterFile and iterators when spilling

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • None
    • 3
    • 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 Unassigned
            Reporter:
            ivan.fefer@mongodb.com Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: