[SERVER-54641] Support a compound indexes on multiple metadata fields and/or the time field in a time-series collection Created: 19/Feb/21  Updated: 06/Dec/22  Resolved: 26/Feb/21

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

Type: Task Priority: Major - P3
Reporter: Benety Goh 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:
Depends
Documented
Duplicate
duplicates SERVER-54640 Support a compound index on a single ... Closed
Assigned Teams:
Storage Execution
Participants:

 Description   

This will allow us to create indexes that reference multiple fields of the metadata document and the time field:

{ 'mm.tag1': 1, 'mm.tag2': 1 }

{ 'mm.tag3': -1, 'mm.tag2': 1 }

{ 'mm.tag1': 1, 'mm.tag2', time: 1 }

 Comments   
Comment by Benety Goh [ 26/Feb/21 ]

This behavior was implemented in SERVER-54640. Refer to this test case in timeseries_index.js

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