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

Store all AccumulatorState objects in DocumentSourceGroup

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

      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 Unassigned
            Reporter:
            militsa.sotirova@mongodb.com Militsa Sotirova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: