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

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

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

      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:
            andrew.paroski@mongodb.com Drew Paroski
            Reporter:
            yoonsoo.kim@mongodb.com Yoon Soo Kim
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: