Clustered collections: Handle trivially empty queries at the QO level

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

      With SERVER-75063, a trivially empty query on a clustered collection results in the SBE builder building a scan with a limit of 0 and the corresponding classic stage has a special case.

      A better place to handle this would be planner_access.cpp, so that we could propagate trivial emptiness through the plan solution, just like trivial truthiness (which SERVER-75063 already does).

            Assignee:
            Unassigned
            Reporter:
            Kartal Kaan Bozdogan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: