Skip to content

Instantly share code, notes, and snippets.

@ggoodale
Created October 20, 2010 01:43
Show Gist options
  • Save ggoodale/635597 to your computer and use it in GitHub Desktop.
Save ggoodale/635597 to your computer and use it in GitHub Desktop.
> db.tiles.find({ position: { $within: { $box: [ [ 1466, -2128 ], [ 1506, -2088 ] ] } } }).explain()
{
"cursor" : "GeoBrowse-box",
"nscanned" : 341,
"nscannedObjects" : 341,
"n" : 341,
"millis" : 657,
"indexBounds" : {
}
}
> db.tiles.find({ position: { $within: { $box: [ [ -1953, -412 ], [ -1913, -372 ] ] } } }).explain();
{
"cursor" : "GeoBrowse-box",
"nscanned" : 24,
"nscannedObjects" : 24,
"n" : 24,
"millis" : 4555,
"indexBounds" : {
}
}
@jacquescrocker
Copy link

Both queries ran on the latest nightly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment