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

Avoid generating unused runtime constants in ExpressionContext

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • QO 2024-03-04
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We currently always populate the cluster time and localNow time when constructing the ExpressionContext even if the variables are unreferenced in any expressions. This shows up in flamegraphs for fast running queries like ycsb.

            Assignee:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Reporter:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None