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

[CQF] Avoid building a vector in walkVariables()

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • Fully Compatible
    • QO 2022-12-26

      VariableCollector takes an ABT and builds a vector of all the Variable references (and definitions). Sometimes the consumer doesn't want a vector: they may want a set, or a per-variable count.

      VariableEnvironment::walkVariables() calls a callback for each Variable, which lets the consumer decide what collection to build (if any). But currently it uses VariableCollector, which builds a vector. Instead we should have a different transport that takes a callback.

            Assignee:
            will.buerger@mongodb.com Will Buerger
            Reporter:
            david.percy@mongodb.com David Percy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: