Remove unused ProjectionPathASTNode argument to speed up $project aggregation requests

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0, 7.3.4, 7.0.13, 8.0.0-rc14
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • ALL
    • v8.0, v7.3, v7.0, v6.0
    • QO 2024-07-22
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The queryStats backport introduced a projection field that held a ProjectionPathASTNode to serialize projection ASTs. However, this field contributes to a 200-300% regression in parsing aggregation expressions containing $project on large constant arrays. Since the field is no longer used anywhere on master, we can safely remove it to regain performance.

            Assignee:
            Lynne Wang
            Reporter:
            Lynne Wang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: