[SERVER-60121] Enable $hint to use the clusterKey of a clustered collection Created: 21/Sep/21  Updated: 29/Oct/23  Resolved: 01/Nov/21

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

Type: Task Priority: Major - P3
Reporter: Haley Connelly Assignee: Haley Connelly
Resolution: Fixed Votes: 0
Labels: PM-2311-M1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-60726 Add clusteredInfo to QueryPlannerParams Closed
is depended on by SERVER-60824 Support non-blocking sort() on cluste... Closed
Related
related to SERVER-60702 Enable bounded collection scans for c... Closed
related to SERVER-60835 Support reverse collscans for cluster... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-10-18, Execution Team 2021-11-01, Execution Team 2021-11-15
Participants:

 Description   

One possible route to take:
QueryPlannerParams store the indices available for planning. Currently, $hint requires the key provided to exist in QueryPlannerParams.indices. The QueryPlanner should be modified to consider the QueryPlannerParams.clusterKey a valid hint despite its absence in the list of indices.



 Comments   
Comment by Githook User [ 29/Oct/21 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-60121 Enable hint to use the clusterKey of a clustered collection
Branch: master
https://github.com/mongodb/mongo/commit/89c2892cb4dd0fe2c3d6d6e62c1e7cda63196471

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