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

[CQF] Replace linear search in BoolExpr::Builder

    XMLWordPrintableJSON

Details

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

    Description

      The BoolExpr::Builder linearly searches through nodes to deduplication while building. For large expressions this is inefficient. We could instead hold a set data type of nodes.

      This was an issue for large $match of the form

      {$match: {a: 1, b: 2, c: 3, ...}}
      

      As part of this ticket, we should run performance tests to see if adding an extra set to the builder slows down smaller queries.

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            matt.boros@mongodb.com Matt Boros
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: