Created
November 21, 2018 20:00
-
-
Save stephencweiss/6746fe58f40d0a056d63e74b8c483af7 to your computer and use it in GitHub Desktop.
An example find() command on a DB with 10m documents but no index explained
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//mongo sh | |
db.descriptions.find( {productId: {$gt : 9999990 } } ).explain("executionStats") | |
{ | |
"queryPlanner" : { | |
"plannerVersion" : 1, | |
"namespace" : "trailblazer.descriptions", | |
"indexFilterSet" : false, | |
"parsedQuery" : { | |
"productId" : { | |
"$gt" : 9999990 | |
} | |
}, | |
... | |
"executionStats" : { | |
"executionSuccess" : true, | |
"nReturned" : 10, | |
"executionTimeMillis" : 15312, | |
"totalKeysExamined" : 0, | |
"totalDocsExamined" : 10452305, | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment