Time series collections efficiently store sequences of measurements over a period of time.
限制
创建time-series collection时,适用以下约束和限制:
Custom collation 是唯一可用于时间序列集合的Advanced Collection Option。
See Time Series Collection Limitations for all time series collection limitations.
步骤
4
指定一个 timeField。
Specify which field should be used as the timeField for the time-series collection. This field must have a BSON type date.
6
7
可选。为以下字段指定一个数值。
字段 | 类型 | 说明 |
|---|---|---|
| 数字 | 指定存储桶中测量之间的最大时间跨度。
|
| 数字 | 指定确定新存储桶的起始时间戳的时间间隔。
|
| 数字 | 启用自动删除早于指定秒数的文档。 |
有关时间序列字段的更多信息,请参阅时间序列对象字段。