Skip to content

Instantly share code, notes, and snippets.

@ggoodale
Created February 10, 2010 21:40
Show Gist options
  • Save ggoodale/300880 to your computer and use it in GitHub Desktop.
Save ggoodale/300880 to your computer and use it in GitHub Desktop.
Same query using $gt: 0
> db.users.find({last_logged_in : {'$gt': 0}}).explain()
{
"cursor" : "BtreeCursor last_logged_in_1",
"startKey" : {
"last_logged_in" : 0
},
"endKey" : {
"last_logged_in" : 1.7976931348623157e+308
},
"nscanned" : 0,
"n" : 0,
"millis" : 0,
"allPlans" : [
{
"cursor" : "BtreeCursor last_logged_in_1",
"startKey" : {
"last_logged_in" : 0
},
"endKey" : {
"last_logged_in" : 1.7976931348623157e+308
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment