将数据迁移到时间序列集合
在此页面上
If your collection stores data that you want to compare across time intervals, use a time series collection to improve performance and storage. For more information on the benefits of time series collections, see 时间序列集合.
You can use the following methods to migrate data from an existing collection into a 时间序列集合:
Considerations
If you use MongoDB 7.0 or greater and already have your data in a MongoDB database, migrate with an 聚合管道.
If your data is in a relational database, use Relational Migrator to migrate your data into a time series collection.
If your deployment is not in one of those cases, use Database Tools to migrate your data.