Explain()
explain() in MongoShell
db.mycollection.find().explain()explain() in PyMongo
mycollection.find().explain()
mycollection.find().explain()[‘executionStats’]Exercise
"executionStats" : {
…
"executionTimeMillis" : 0,
"totalKeysExamined" : 0,
"totalDocsExamined" : 4,
"nReturned": 1,
"executionStages": {
"stage": "COLLSCAN",
…Last updated
Was this helpful?