[SERVER-31639] Additional optimizations for MatchExpression::getOptimizer() Created: 19/Oct/17  Updated: 30/Oct/23  Resolved: 21/Dec/17

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 3.7.1

Type: Bug Priority: Major - P3
Reporter: Justin Seyster Assignee: Nicholas Zolnierz
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-31360 MatchExpression::getOptimizer() for $... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query 2017-12-18, Query 2018-01-01
Participants:

 Description   

We could simplify a lot of JSON Schema expressions if we replaced AND expressions that include a contradiction with

{alwaysFalse: 1}

and OR expression that contain a tautology with

{alwaysTrue: 1}

.



 Comments   
Comment by Githook User [ 20/Dec/17 ]

Author:

{'name': 'Nick Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com', 'username': 'nzolnierzmdb'}

Message: SERVER-31639: Additional optimizations for MatchExpression::getOptimizer()
Branch: master
https://github.com/mongodb/mongo/commit/2d636b80d41dda1300e7d37a7ffee6fc81ed67ff

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