[DOCS-14680] DOCS-14680 Investigate changes in SERVER-58057: Support ascending and descending indexes on time-series measurements Created: 24/Jul/21  Updated: 13/Nov/23  Resolved: 18/Feb/22

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 5.1.0-rc0, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-58057 Support ascending and descending inde... Closed
Duplicate
Related
Participants:
Days since reply: 2 years, 28 weeks, 4 days ago
Epic Link: DOCSP-19447

 Description   
Downstream Change Summary

When the feature flag 'featureFlagTimeseriesMetricIndexes' is enabled, users can create ascending and descending indexes on time-series measurement fields.

Description of Linked Ticket

For ascending indexes, a createIndexes command on a time-series collection measurement field:

{
    createIndexes: “abc”,
    indexes: [ { key: { a : 1 } } ]
}

will be equivalent to the following operation on the underlying buckets collection:

{
    createIndexes: “system.buckets.abc”,
    indexes: [ { key: { control.max.a : 1, control.min.a : 1 } } ]
}

For descending indexes, a createIndexes command on a time-series collection measurement field:

{
    createIndexes: “abc”,
    indexes: [ { key: { a : -1 } } ]
}

will be equivalent to the following operation on the underlying buckets collection:

{
    createIndexes: “system.buckets.abc”,
    indexes: [ { key: { control.min.a : -1, control.max.a : -1 } } ]
}


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