-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: 1.9.1
-
Component/s: MapReduce
-
None
-
Query
-
ALL
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Repro steps:
- mongorestore the attached database
- Run the attached JS script.
Output should look like this:
Count of $near query results:
100
Count of $near query results with limit(500):
500
Results from map/reduce with no limit:
{
"result" : "output",
"timeMillis" : 62,
"counts" : {
"input" : 100,
"emit" : 100,
"output" : 2
},
"ok" : 1
}
Results from map/reduce with limit(10):
{
"result" : "output",
"timeMillis" : 4,
"counts" : {
"input" : 10,
"emit" : 10,
"output" : 1
},
"ok" : 1
}
Results from map/reduce with limit(500):
{
"result" : "output",
"timeMillis" : 7,
"counts" : {
"input" : 100,
"emit" : 100,
"output" : 2
},
"ok" : 1
}
- is related to
-
SERVER-4341 disable non-default sort(), skip() and limit() together for geo queries
-
- Closed
-
-
SERVER-14515 Remove default limit from geoNear operations
-
- Closed
-