Store all AccumulatorState objects in DocumentSourceGroup

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      There is a call to AccumulationExpression::factory() in a $group optimization here. SERVER-97674 will add another call in a different optimization. We should instead only call this once (maybe during parsing) and store the AccumulatorState objects for use in optimizations, rather than creating the AccumulatorState objects more than once.
       
      CC Arun Banala

              Assignee:
              Unassigned
              Reporter:
              Militsa Sotirova
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: