cloneCollectionAsCapped | Copies a non-capped collection as a new capped collection.将非上限集合复制为新的封顶集合。 | No support for M0 and Flex clusters.不支持M0和Flex集群。 |
collMod | Add options to a collection or modify a view definition.向集合添加选项或修改视图定义。 | Yes支持 |
compact | Defragments a collection and rebuilds the indexes.对集合进行分片整理并重建索引。 | No support for M0 and Flex clusters.不支持M0和Flex集群。 |
compactStructuredEncryptionData | Compacts documents specified in the state collections and deletes redundant documents.压缩状态集合中指定的文档并删除冗余文档。 | Yes支持 |
convertToCapped | Converts a non-capped collection to a capped collection.将非上限集合转换为上限集合。 | Yes支持 |
create | Creates a collection or a view.创建集合或视图。 | Yes支持 |
createIndexes | Builds one or more indexes for a collection.为集合构建一个或多个索引。 | Yes支持 |
currentOp | Returns a document that contains information on in-progress operations for the database instance.返回一个文档,其中包含有关数据库实例正在进行的操作的信息。 | Yes支持 |
drop | Removes the specified collection from the database.从数据库中删除指定的集合。 | Yes支持 |
dropDatabase | Removes the current database.删除当前数据库。 | Yes支持 |
dropConnections | Drops outgoing connections to the specified list of hosts.删除指定主机列表的传出连接。 | Yes支持 |
dropIndexes | Removes indexes from a collection.从集合中删除索引。 | Yes支持 |
filemd5 | Deprecated.已弃用。 Returns the md5 hash for files stored using GridFS.返回使用GridFS存储的文件的md5哈希值。 | Yes支持 |
fsync | Flushes pending writes to the storage layer and locks the database to allow backups.刷新对存储层的待处理写入,并锁定数据库以允许备份。 | No support for Flex clusters, M0, and M10 clusters.不支持Flex集群、M0和M10集群。 |
fsyncUnlock | Unlocks one fsync lock.解锁一个fsync锁。 | No support for M0 and Flex clusters.不支持M0和Flex集群。 |
getDefaultRWConcern | Retrieves the global default read and write concern options for the deployment.检索部署的全局默认读写入关注选项。 | Yes支持 |
getClusterParameter | Retrieves cluster parameter values from all nodes in a cluster.从群集中的所有节点检索群集参数值。
New in version 6.0.6.0版本中的新功能。 | Yes支持 |
getParameter | Retrieves configuration options.检索配置选项。 | Limited support for M0 and Flex clusters.对M0和Flex集群的支持有限。 |
killCursors | Kills the specified cursors for a collection.杀死集合的指定游标。 | Yes支持 |
killOp | Terminates an operation as specified by the operation ID.根据操作ID指定终止操作。 | Limited support for M0, M10, and Flex clusters. |
listCollections | Returns a list of collections in the current database.返回当前数据库中的集合列表。 | Yes支持 |
listDatabases | Returns a document that lists all databases and returns basic database statistics.返回一个列出所有数据库并返回基本数据库统计信息的文档。 | Yes支持 |
listIndexes | Lists all indexes for a collection.列出集合的所有索引。 | Yes支持 |
logRotate | Rotates the MongoDB logs to prevent a single file from taking too much space.旋转MongoDB日志以防止单个文件占用太多空间。 | No support for Flex clusters, M0, and M10 clusters.不支持Flex集群、M0和M10集群。 |
reIndex | Rebuilds all indexes on a collection.重建集合上的所有索引。 | No support for M0 and Flex clusters.不支持M0和Flex集群。 |
renameCollection | Changes the name of an existing collection.更改现有集合的名称。 | Yes支持 |
rotateCertificates | Performs online TLS certificate rotation.执行在线TLS证书轮换。 | Yes支持 |
setFeatureCompatibilityVersion | Enables or disables features that persist data that are backwards-incompatible.启用或禁用保留向后不兼容数据的功能。 | No support for Flex clusters, M0, and M10 clusters.不支持Flex集群、M0和M10集群。 |
setIndexCommitQuorum | Changes the minimum number of data-bearing members (i.e commit quorum), including the primary, that must vote to commit an in-progress index build before the primary marks those indexes as ready.更改数据承载成员的最小数量(即提交法定人数),包括主成员,在主成员将这些索引标记为就绪之前,必须投票提交正在进行的索引构建。 | Yes支持 |
setClusterParameter | Modifies configuration options for all nodes in a replica set or sharded cluster.修改副本集或分片群集中所有节点的配置选项。
New in version 6.0.6.0版本中的新功能。 | Yes支持 |
setParameter | Modifies configuration options.修改配置选项。 | No support for Flex clusters, M0, and M10 clusters.不支持Flex集群、M0和M10集群。 |
setDefaultRWConcern | Sets the global default read and write concern options for the deployment.设置部署的全局默认读写入关注选项。 | Yes支持 |
setUserWriteBlockMode | Blocks and unblocks writes to the entire cluster.阻止和解除阻止对整个集群的写入。 | No |
shutdown | Shuts down the mongod or mongos process.关闭mongod 或mongos 进程。 | No support for Flex clusters, M0, and M10 clusters.不支持Flex集群、M0和M10集群。 |
validateDBMetadata | Checks that the stored metadata of a database or a collection is valid within a particular API version.检查数据库或集合的存储元数据在特定的API版本中是否有效。 | Yes支持 |