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

Reduce number of memory allocations in $group

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Execution
    • Fully Compatible
    • QE 2024-03-04, QE 2024-03-18
    • 135

      We use a temporary MaterializedRow for hosting the lookup key in the hash table for each input document. In the case of $count stages, where there is a single value in the hash, this leads to allocating a vector of 1 value and immediately deallocating it

            Assignee:
            alberto.massari@mongodb.com Alberto Massari
            Reporter:
            alberto.massari@mongodb.com Alberto Massari
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: