PRESENTATION - June 28, 2016

Deciphering .explain() Output

MongoDB provides the db.collection.explain() method, the cursor.explain() method, and the explain command to return information on query plans and execution statistics of the query plans. This is a useful tool to use for analyzing individual query performance in the shell. In this session we will analyze explain output for query and aggregation. You will learn how to read an explain plan and understand how this information can be used in performance tuning.

Try MongoDB Atlas, our fully-managed database as a service
Available on AWS, Azure and GCP.