Compatibility Changes in MongoDB 6.3MongoDB 6.3中的兼容性更改
On this page
MongoDB 6.3.1 is a rapid release and is only supported for MongoDB Atlas. MongoDB 6.3.1是一个快速版本,仅支持MongoDB Atlas。MongoDB 6.3.1 is not supported for use on-premises. MongoDB 6.3.1不支持在本地使用。For more information, see MongoDB Versioning.有关更多信息,请参阅MongoDB版本控制。
To install the latest MongoDB version supported for on-premises use, MongoDB 6.0, see the MongoDB 6.0 installation instructions.要安装支持本地使用的最新MongoDB版本MongoDB 6.0,请参阅MongoDB 6.0安装说明。
This page describes changes introduced in MongoDB 6.3 that can affect compatibility with older versions of MongoDB.本页描述了MongoDB 6.3中引入的更改,这些更改可能会影响与旧版本MongoDB的兼容性。
Time Series Collections时间序列集合
The following changes to time series collections can affect compatibility with older versions of MongoDB.时间序列集合的以下更改可能会影响与旧版本MongoDB的兼容性。
Granularity Settings粒度设置
Starting in MongoDB 6.3, you can configure time series bucket granularity using the new 从MongoDB 6.3开始,您可以使用新的bucketMaxSpanSeconds and bucketRoundingSeconds custom bucketing parameters. bucketMaxSpanSeconds和bucketRoundingSeconds自定义桶参数来配置时间序列bucket粒度。To downgrade below 6.3, you must either drop all collections with these parameters, or modify them to use the corresponding 要降级到6.3以下,必须删除所有带有这些参数的集合,或者修改它们以使用相应的granularity. granularity。For details, see 有关详细信息,请参阅collMod.collMod。
Not all 并非所有的bucketMaxSpanSeconds and bucketRoundingSeconds values correspond to a granularity value. In such cases, you must drop the collection.bucketMaxSpanSeconds和bucketRoundingSeconds值都对应于粒度值。在这种情况下,必须删除集合。
Partial TTL Indexes for Time Series Collections时间序列集合的部分TTL索引
Starting in MongoDB 6.3, you can create partial Time To Live (TTL) indexes on time series collections. 从MongoDB 6.3开始,您可以在时间序列集合上创建部分生存时间(TTL)索引。To downgrade below 6.3, you must remove all partial TTL indexes from your time series collections.要降级到6.3以下,必须从时间序列集合中删除所有部分TTL索引。