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

CanonicalQuery::normalizeTree should optimize a $nor with a single child.

    • Fully Compatible
    • Query 17 (07/15/16)

      CanonicalQuery::normalizeTree performs optimizations by looking for logical equivalencies. For example, an AndMatchExpression with one child is equivalent to just that child; nested NotMatchExpressions cancel out. Currently, it does not optimize a NorMatchExpression node with a single child to be a NotMatchExpression with that same child, an optimization that is useful as a result of SERVER-22833, which caused NotMatchExpression to serialize to a $nor with one child expression.

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            benjamin.murphy Benjamin Murphy
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: