On this page
db.collection.dropIndexes()
db.collection.
dropIndexes
( )- 在
_id
字段上删除除所需索引以外的所有索引。仅将dropIndexes()作为方法调用集合对象。
- 在
Warning
此命令在受影响的数据库上获得写锁定,并将阻止其他操作,直到完成为止。
db.collection.
dropIndexes
( )
_id
字段上删除除所需索引以外的所有索引。仅将dropIndexes()作为方法调用集合对象。Warning
此命令在受影响的数据库上获得写锁定,并将阻止其他操作,直到完成为止。