Release memory in HashAgg after results have been consumed.

XMLWordPrintableJSON

    • 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

      In HashAggStage, there is a map storing the keys of the groups and their pairs. There is an iterator on this map that is used to track and return results to the caller. The records that have been consumed are not deleted from the map but kept in memory for the whole execution of the query. We should release memory by deleting the consumed records, provided that this will not affect the performance of the queries. (The same is true for the BlockHashAggStage

            Assignee:
            Unassigned
            Reporter:
            Foteini Alvanaki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: