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

Constant-fold makeBsonObj

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Query Optimization

      Once SERVER-79367 is merged, we should add a const-folding step that detects when we have the following ABT:

      FunctionCall("makeBsonObj", Constant [MakeObjSpec], Constant [anything], <any args that don't depend on any external variables>)

      And const-folds it into a Constant [<object>] according to the given MakeObjSpec (second argument). Note that the same logic can be used for makeObj as well. One idea would be to just execute this SBE expression once and set the output to the constant value.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            alya.berciu@mongodb.com Alya Berciu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: