Avoid re-constructing an ExpressionContext for query shape stats

XMLWordPrintableJSON

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

      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.

        1. mongod.svg
          875 kB
          Charlie Swanson

            Assignee:
            Charlie Swanson
            Reporter:
            Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: