[SERVER-80941] Speed improvements for shapifying MatchExpressions Created: 11/Sep/23  Updated: 29/Oct/23  Resolved: 13/Sep/23

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

Type: Task 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-85055 Tracking: M1 Performance improvement ... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

Discovered this while looking into SERVER-80934 and SERVER-79736. In our PathMatchExpression serialization we will end up creating a Value from the BSONElement _rhs which we don't need to do. The basic/simple patch showed a good difference but will need some tweaking to eliminate some code duplication.

I will update with the difference it makes once I re-run the numbers.



 Comments   
Comment by Githook User [ 13/Sep/23 ]

Author:

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

Message: SERVER-80941 Speed up shapifying path expressions
Branch: master
https://github.com/mongodb/mongo/commit/aaa76b9953d40436f22161327165db877baea137

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