[DOCS-15215] [Server] Investigate changes in SERVER-58716: Allow finds with hints using index spec on time-series collections Created: 06/Apr/22  Updated: 22/Jan/24

Status: Backlog
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: backlog, feature, query
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-58716 Allow finds with hints using index sp... Closed
Participants:
Days since reply: 1 year, 44 weeks ago
Epic Link: DOCSP-11702

 Description   
Original Downstream Change Summary

A hint on a time-series collection can now specify an index spec.

Previously, we had this restriction: "On a time series collection, you can only specify hints using the index name, not the index key pattern." This ticket lifts that restriction, so a hint can use either an index name or a key pattern. (This makes the behavior more similar to a normal collection.)

Description of Linked Ticket

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.


Generated at Thu Feb 08 08:12:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.