db.collection.createIndex() | Builds an index on a collection.在集合上构建索引。 |
db.collection.dropIndex() | Removes a specified index on a collection.删除集合上的指定索引。 |
db.collection.dropIndexes() | Removes all indexes on a collection.删除集合上的所有索引。 |
db.collection.getIndexes() | Returns an array of documents that describe the existing indexes on a collection.返回描述集合上现有索引的文档数组。 |
db.collection.reIndex() | Rebuilds all existing indexes on a collection.重建集合上的所有现有索引。 |
db.collection.totalIndexSize() | Reports the total size used by the indexes on a collection. 报告集合上索引使用的总大小。Provides a wrapper around the totalIndexSize field of the collStats output.为collStats输出的totalIndexSize字段提供包装。 |
cursor.explain() | Reports on the query execution plan for a cursor.关于游标的查询执行计划的报告。 |
cursor.hint() | Forces MongoDB to use a specific index for a query.强制MongoDB对查询使用特定索引。 |
cursor.max() | Specifies an exclusive upper index bound for a cursor. 指定游标的独占索引上限。For use with cursor.hint()与cursor.hint()一起使用 |
cursor.min() | Specifies an inclusive lower index bound for a cursor. For use with cursor.hint()指定游标的包含性下限索引。与cursor.hint()一起使用 |