[SERVER-77854] Avoid re-parsing query in CanonicalQuery::canonicalize Created: 06/Jun/23  Updated: 29/Oct/23  Resolved: 07/Jun/23

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

Type: Bug Priority: Major - P3
Reporter: Charlie Swanson Assignee: Charlie Swanson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-61259 $or queries with text indexes fail on... Closed
Problem/Incident
is caused by SERVER-76042 Avoid re-parsing match, sort and proj... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QO 2023-06-12
Participants:

 Description   

There's a 'constructor' (static method returning a CanonicalQuery) that takes in a pre-existing CanonicalQuery. In SERVER-76042 we accidentally made a change to re-parse this query. This is obviously not great for performance, but we noticed it because it actually prevents using it with 'special features' like $text which may have been acceptable to parse when the original CanonicalQuery was constructed, but are no longer.



 Comments   
Comment by Githook User [ 07/Jun/23 ]

Author:

{'name': 'Charlie Swanson', 'email': 'charlie.swanson@mongodb.com', 'username': 'cswanson310'}

Message: SERVER-77854 avoid re-parsing query in CanonicalQuery::canonicalize
Branch: master
https://github.com/mongodb/mongo/commit/c1354a0b8057bde64eb2146f21ab3ab3c48ae706

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