[SBE] Improve performance of $mergeObjects when used with $group

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • QE 2021-10-18, QE 2021-11-01
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When an accumulator operator is used with $group, the engine performs an accumulation process that processes each input value and updates/maintains "accumulator state" for each group. For each value processed, the current SBE implementation of the $mergeObjects operator will always update the accumulator state by allocating a new object rather than modifying the current existing object held in the accumulator state. This hurts the performance of the $mergeObjects operator in SBE.

      The goal of this task is to improve the SBE implementation of $mergeObjects to avoid allocating a new object each time it processes a value.

       

            Assignee:
            Drew Paroski
            Reporter:
            Yoon Soo Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: