您的位置:首页 > 数据库 > Mongodb

Indexing(Chapter 5 of MongoDB The Definitive Guild)

2010-10-12 20:28 671 查看
  explain is an incredibly handy tool that will give you lots of information about your queries. You can run it on any query by tacking it on to a cursor. explain returns a document, not the cursor itself, unlike most cursor methods:  > db.foo.find().explain()  explain will return information about the indexes used for the query (if any) and stats about timing and the number of documents scanned.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: