[SERVER-58150] Time-series collections should somehow display the clustered index on time Created: 29/Jun/21  Updated: 06/Dec/22  Resolved: 21/Jan/22

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

Type: Improvement Priority: Major - P3
Reporter: Louis Williams Assignee: Backlog - Storage Execution Team
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-60649 Show clustered index on timeseries co... Closed
Assigned Teams:
Storage Execution
Participants:

 Description   

Time-series collections have a built-in index on time (which is really a clustered _id index on the buckets collection), but we do not display this in listIndexes, and it is confusing to users.

This ticket is intended to start a discussion about how to solve this problem, if at all.

One option we could consider:

  • Report a fake index on {time: 1} in listIndexes with some flag indicating that it is built-in and the primary index, like "builtIn: true"
  • Secondary indexes on {time: 1} will not have this "builtIn" flag. In this way, users can differentiate between the built-in index and any secondary indexes they build.

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