[SERVER-23138] CanonicalQuery::normalizeTree should optimize a $nor with a single child. Created: 14/Mar/16  Updated: 19/Jul/16  Resolved: 13/Jul/16

Status: Closed
Project: Core Server
Component/s: Internal Code, Querying
Affects Version/s: None
Fix Version/s: 3.3.10

Type: Improvement Priority: Major - P3
Reporter: Benjamin Murphy Assignee: David Storch
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Query 17 (07/15/16)
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 13/Jul/16 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-23138 make CanonicalQuery normalize $nor with one child to a NOT expression
Branch: master
https://github.com/mongodb/mongo/commit/a53d25936a00cce75d7332a4b7e513814773eaf6

Generated at Thu Feb 08 04:02:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.