db.runCommand(
{geoNear:"testcollection" , near : [0,0], limit:100,maxDistance: 100,distanceMultipler:1})
nscanned is 0 when in 2.4.8 has it as 5.
Additionally the ns field is missing in the latest results and the stats field in the result differs from 2.4.8. This is causing some of the .Net driver tests to fail with the latest build.
db.runCommand({geoNear:"testcollection" , near : [0,0], limit:100,maxDistance:
100,distanceMultipler:1}).stats
2.4.8
{
"time" : 2,
"btreelocs" : 0,
"nscanned" : 5,
"objectsLoaded" : 5,
"avgDistance" : 3.2069368678503425,
"maxDistance" : 5.09903122655428
}
2.5.4
{
"btreelocs" : 0,
"nscanned" : 5,
"objectsLoaded" : 5,
"avgDistance" : 3.2069368678503425,
"maxDistance" : 5.09903122655428,
"time" : 4
}
12/30 build
{
"nscanned" : NumberLong(0),
"objectsLoaded" : NumberLong(5),
"avgDistance" : 3.2069368678503425,
"maxDistance" : 5.0990195135927845,
"time" : 3
}
- duplicates
-
SERVER-12231 explain() for GeoSearchCursor broken
- Closed