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

Consider moving MatchExpressions instead of always cloning them

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

      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.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            alexander.ignatyev@mongodb.com Alexander Ignatyev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: