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

Revisit how we implement top-level $and optimization in SBE stage builder

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Query Execution

      It would be great if the top-level $and optimization didn't rely on pointer comparison with the root of the MatchExpression tree. Ideally we should do something more principled here that feels less hacky.

      Also, there are cases involving nested $and's where we could apply the same optimization that we're doing for the top-level $and. For example, we could optimize the inner $and in queries like "find({$or[{$and: [..]}, ..]})".

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            andrew.paroski@mongodb.com Drew Paroski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: