Skip to content

Instantly share code, notes, and snippets.

@ggoodale
Created October 20, 2010 01:45
Show Gist options
  • Save ggoodale/635600 to your computer and use it in GitHub Desktop.
Save ggoodale/635600 to your computer and use it in GitHub Desktop.
Using 1.6.3
> db.tiles.find({ position: { $within: { $box: [ [ 1466, -2128 ], [ 1506, -2088 ] ] } } }).explain()
{
"cursor" : "GeoBrowse-box",
"nscanned" : 341,
"nscannedObjects" : 341,
"n" : 341,
"millis" : 725,
"indexBounds" : {
}
}
> db.tiles.find({ position: { $within: { $box: [ [ -1953, -412 ], [ -1913, -372 ] ] } } }).explain();
{
"cursor" : "GeoBrowse-box",
"nscanned" : 24,
"nscannedObjects" : 24,
"n" : 24,
"millis" : 4502,
"indexBounds" : {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment