[SERVER-84757] Prevent sorting elements in a $in expression during auto-parameterization Created: 11/Jan/24  Updated: 19/Jan/24  Resolved: 19/Jan/24

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

Type: Improvement Priority: Major - P3
Reporter: Ruoxin Xu Assignee: Ruoxin Xu
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Participants:
Linked BF Score: 135

 Description   

We can use InListData::hasSingleElement() during auto-parameterization rather than getElements() that would sort all the elements in a $in expression.



 Comments   
Comment by Githook User [ 18/Jan/24 ]

Author:

{'name': 'Ruoxin Xu', 'email': 'ruoxin.xu@mongodb.com', 'username': 'RuoxinXu'}

Message: SERVER-84757 Prevent sorting elements in a $in expression during auto-parameterization (#18141)

GitOrigin-RevId: 879f61be945a694ca03fb42c0bcead066800e722
Branch: master
https://github.com/mongodb/mongo/commit/1538b46bd0e47c932ce6e656bbf41abb9c0950f1

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