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.
相关文章推荐
- Replication(Chapter 9 of MongoDB The Definitive Guild)
- Administration(Chapter 8 of MongoDB The Definitive Guild)
- Creating, Updating, and Deleting Documents(Chapter 3 of MongoDB The Definitive Guild)
- Querying(Chapter 4 of MongoDB The Definitive Guild)
- Replication(Chapter 10 of MongoDB The Definitive Guild)
- Aggregation(Chapter 6 of MongoDB The Definitive Guild)
- Advanced Topics(Chapter 7 of MongoDB The Definitive Guild)
- MongoDB:The Definitive Guide CHAPTER 2 Getting Started
- Designing the User Interface(Chapter 3 of Hello, Android)
- Why does Quora use MySQL as the data store instead of NoSQLs such as Cassandra, MongoDB, CouchDB etc?
- References & the Copy-Constructor(Chapter 11 of Thinking in C++)
- Hadoop:The Definitive Guid 总结 Chapter 5 MapReduce应用开发
- Solving the issue of installing mongodb on win8
- Hadoop:The Definitive Guid 总结 Chapter 1~2 初识Hadoop、MapReduce
- Functions(Chapter 7 of The C++ Programming Language)
- Reaction to 构造之法 of Software Engineering From The First Chapter toThe Fifth Chapter
- Data Structures(Chapter 3 of The Algorithm Design Manual)
- 《代码大全2》阅读笔记06--Chapter 11 The Power of Variable Names
- Introduction to Django(The Definitive Guild to Django)
- The Django Admin Site(The Definitive Guild to Django)