Details
-
Task
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
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 } } ] |
}
|
Attachments
Issue Links
- documents
-
SERVER-58057 Support ascending and descending indexes on time-series measurements
-
- Closed
-