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

Optimize $not + alwaysTrue/alwaysFalse in all contexts

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • QO 2024-06-24, QO 2024-07-08, QO 2024-07-22, QO 2024-08-05, QO 2024-08-19, QO 2024-09-02

      A simple static rewrite we can always do, even in contexts where the boolean simplifier is not triggered, is optimizing $not + $alwaysTrue -> $alwaysFalse, and $not + alwaysFalse -> $alwaysTrue. This could be useful in triggering an EOF plan in some additional cases where it is safe to do so.

            Assignee:
            sopho.kevlishvili@mongodb.com Sopho Kevlishvili (Inactive)
            Reporter:
            alya.berciu@mongodb.com Alya Berciu
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: