Skip to content

Instantly share code, notes, and snippets.

@sheki
Created August 5, 2014 21:20
Show Gist options
  • Select an option

  • Save sheki/4f477baaee9e67decde4 to your computer and use it in GitHub Desktop.

Select an option

Save sheki/4f477baaee9e67decde4 to your computer and use it in GitHub Desktop.
trollmongo.js
c.find({$query:{}, $maxScan:1}).explain()
{
"cursor" : "BasicCursor",
"isMultiKey" : false,
"n" : 0,
"nscannedObjects" : 3,
"nscanned" : 3,
"nscannedObjectsAllPlans" : 3,
"nscannedAllPlans" : 3,
"scanAndOrder" : false,
"indexOnly" : false,
"nYields" : 0,
"nChunkSkips" : 0,
"millis" : 0,
"indexBounds" : {
},
"server" : "mac-C02LK0DLFH02.local:27017"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment