[SERVER-70969] Generate a single payload for non-overlapping ranges Created: 31/Oct/22  Updated: 29/Oct/23  Resolved: 09/Nov/22

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

Type: Improvement Priority: Major - P3
Reporter: Davis Haupt (Inactive) Assignee: Ted Tuckman
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-70669 Optimize empty encrypted range querie... Closed
Backwards Compatibility: Fully Compatible
Sprint: QO 2022-11-14
Participants:

 Description   

After SERVER-70355, non-overlapping ranges like x > 5 and x < 3 will generate two one-sided payloads. This will cause a lot of extra work on the server-side for a query that we know beforehand will not return any results on scalar fields. We should catch this case client-side and create a single payload with zero edges.



 Comments   
Comment by Githook User [ 08/Nov/22 ]

Author:

{'name': 'Ted Tuckman', 'email': 'ted.tuckman@mongodb.com', 'username': 'TedTuckman'}

Message: SERVER-70969 Replace always false $and children with always false expression during query analysis
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/1c03ea52fbb0e42e816a3c6955f6f1533ede2dcd

Generated at Thu Feb 08 06:17:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.