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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying
    • Query Execution

    Description

      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: [..]}, ..]})".

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            andrew.paroski@mongodb.com Drew Paroski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: