发布于 2015-09-14 15:03:24 | 203 次阅读 | 评论: 0 | 来源: 网络整理

db.collection.reIndex()

This method drops all indexes and recreates them. This operation may be expensive for collections that have a large amount of data and/or a large number of indexes.

Call this method, which takes no arguments, on a collection object. For example:

db.collection.reIndex()

Change collection to the name of the collection that you want to rebuild the index.

最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务