On this page本页内容
MongoDB 5.2 is a rapid release and is only supported for MongoDB Atlas. MongoDB 5.2 is not supported for use on-premises. MongoDB 5.2是一个快速版本,只支持MongoDB Atlas。MongoDB 5.2不支持在本地使用。For more information, see MongoDB Versioning.有关更多信息,请参阅MongoDB版本控制。
The following 5.2 changes can affect compatibility with older versions of MongoDB.以下5.2更改可能会影响与旧版本MongoDB的兼容性。
mongod
Optionsmongod
选项MongodB removes the following MongodB删除了以下mongod
options:mongod
选项:
mongod Optionsmongod 选项 | |
---|---|
--cpu | --cpu mongod option.--cpu mongod 选项。 |
Starting in MongoDB 5.2, you can use 从MongoDB 5.2开始,您可以使用dropIndexes
or db.collection.dropIndexes()
to drop existing indexes on the same collection even if there is an index build in progress. dropIndexes
或db.collection.dropIndexes()
删除同一个集合上的现有索引,即使正在生成索引。In earlier versions, attempting to drop a different index during an in-progress index build results in a 在早期版本中,在进行中的索引生成期间尝试删除其他索引会导致BackgroundOperationInProgressForNamespace
error.BackgroundOperationInProgressForNamespace
错误。