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

Additions to Bonsai const folding

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • QO 2024-01-08

      Split out from SERVER-79367 since they could be more generally useful. See that ticket for a summary of the original motivation.

      Current approach is to do rudimentary type detection, and apply simplifications when we know the output types:

      • isObject(<known type>) -> true/false (can do similar for isArray/exists)
      • setField(<const object/var -> const object>, "field", <value>) -> newObj(<fields from const obj>, "field", value)
      • setField(newObj(...), "field", <value>) -> newObj(..., "field", <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:
            5 Start watching this issue

              Created:
              Updated: