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

[CQF] Support simplifications related to exists:true/false

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

      Exists is currently converted to PathDefault which is NOT translated into an interval. The goals of the task are to

      • allow PathDefault to be translated into an interval
      • allow simplifications between the intervals of a non-traversed path (e.g. Get "a" Id) and a traversed path (e.g. Get "a" Traverse Id) in the case the non-traversed path encodes an existence of an array, or just an existence in general.

       

      Queries to test with:

      {a:{$ne:null, $exists:true}}

      {a:{$gt:1, $exists:true}}

      {a:{$eq:null, $exists:true{}}

       

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            svilen.mihaylov@mongodb.com Svilen Mihaylov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: