[SERVER-58716] Allow finds with hints using index spec on time-series collections Created: 20/Jul/21  Updated: 06/Apr/22  Resolved: 07/Jan/22

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

Type: Task Priority: Major - P3
Reporter: Kris Satya (Inactive) Assignee: Dan Larkin-York
Resolution: Done Votes: 0
Labels: time-series
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-15215 [Server] Investigate changes in SERVE... Backlog
Problem/Incident
causes SERVER-63902 Natural hints no longer work on TS co... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-12-27, Execution Team 2022-01-10
Participants:

 Description   

Currently, retrieving documents from a time-series collection using the find command and an index spec as a hint returns a BadValue exception as the index spec in the hint isn't translated to its corresponding buckets collection index spec. We currently only support indexes on the timeField and metaField for time-series collections, so we should allow queries with index spec as hints to work by translating the index spec in the hint to its buckets collection index spec. This helper function will be useful as it performs the index spec translation.



 Comments   
Comment by Githook User [ 07/Jan/22 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-58716 Rewrite index spec hint for time-series collection
Branch: master
https://github.com/mongodb/mongo/commit/7a937480d7dec9564fdeb519e98555e315dfa970

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