Created
February 10, 2010 21:40
-
-
Save ggoodale/300880 to your computer and use it in GitHub Desktop.
Same query using $gt: 0
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
> 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