Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save miguelangelnieto/7819828899d03cc632bf0a8b2b1482ef to your computer and use it in GitHub Desktop.
Save miguelangelnieto/7819828899d03cc632bf0a8b2b1482ef to your computer and use it in GitHub Desktop.
{
"queryPlanner" : {
"plannerVersion" : 1,
"namespace" : "test.names",
"indexFilterSet" : false,
"parsedQuery" : {
"$and" : [
{
"Name" : {
"$eq" : "Miguel"
}
},
{
"Age" : {
"$gt" : 34
}
}
]
},
"winningPlan" : {
"stage" : "FETCH",
"filter" : {
"Age" : {
"$gt" : 34
}
},
"inputStage" : {
"stage" : "IXSCAN",
"keyPattern" : {
"Name" : 1,
"Street" : 1
},
"indexName" : "Name_1_Street_1",
"isMultiKey" : false,
"multiKeyPaths" : {
"Name" : [ ],
"Street" : [ ]
},
"isUnique" : false,
"isSparse" : false,
"isPartial" : false,
"indexVersion" : 2,
"direction" : "forward",
"indexBounds" : {
"Name" : [
"[\"Miguel\", \"Miguel\"]"
],
"Street" : [
"[MinKey, MaxKey]"
]
}
}
},
"rejectedPlans" : [ ]
},
"executionStats" : {
"executionSuccess" : true,
"nReturned" : 1,
"executionTimeMillis" : 0,
"totalKeysExamined" : 1,
"totalDocsExamined" : 1,
"executionStages" : {
"stage" : "FETCH",
"filter" : {
"Age" : {
"$gt" : 34
}
},
"nReturned" : 1,
"executionTimeMillisEstimate" : 0,
"works" : 2,
"advanced" : 1,
"needTime" : 0,
"needYield" : 0,
"saveState" : 0,
"restoreState" : 0,
"isEOF" : 1,
"invalidates" : 0,
"docsExamined" : 1,
"alreadyHasObj" : 0,
"inputStage" : {
"stage" : "IXSCAN",
"nReturned" : 1,
"executionTimeMillisEstimate" : 0,
"works" : 2,
"advanced" : 1,
"needTime" : 0,
"needYield" : 0,
"saveState" : 0,
"restoreState" : 0,
"isEOF" : 1,
"invalidates" : 0,
"keyPattern" : {
"Name" : 1,
"Street" : 1
},
"indexName" : "Name_1_Street_1",
"isMultiKey" : false,
"multiKeyPaths" : {
"Name" : [ ],
"Street" : [ ]
},
"isUnique" : false,
"isSparse" : false,
"isPartial" : false,
"indexVersion" : 2,
"direction" : "forward",
"indexBounds" : {
"Name" : [
"[\"Miguel\", \"Miguel\"]"
],
"Street" : [
"[MinKey, MaxKey]"
]
},
"keysExamined" : 1,
"seeks" : 1,
"dupsTested" : 0,
"dupsDropped" : 0,
"seenInvalidated" : 0
}
}
},
"serverInfo" : {
"host" : "Miguels-MacBook-Pro.local",
"port" : 27017,
"version" : "3.6.8",
"gitVersion" : "6bc9ed599c3fa164703346a22bad17e33fa913e4"
},
"ok" : 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment