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

Avoid re-constructing an ExpressionContext for query shape stats

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • QO 2023-05-29

      When running some profiles I noticed us re-constructing an ExpressionContext when we already have one! In particular, this is wasteful because doing so will read the clock to compute the "NOW" system variable.

            Assignee:
            charlie.swanson@mongodb.com Charlie Swanson
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: