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

Consider moving MatchExpressions instead of always cloning them

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Query Optimization

    Description

      The Boolean simplifier always clones MatchExpressions when restoring expressions from their bitset representation. Given that once the simplified MatchExpression is materialized we drop the original one in favour of the simplified one, so we can avoid cloning/copying data, and moved it instead.
      We should be careful here and remember that sometimes one node participates more than once in the expression.

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            alexander.ignatyev@mongodb.com Alexander Ignatyev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: