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

Remove unused ProjectionPathASTNode argument to speed up $project aggregation requests

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Lynne Wang
            Reporter:
            lynne.wang@mongodb.com Lynne Wang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: