-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 3.0.0-rc8
-
Component/s: Diagnostics, Querying
-
Fully Compatible
-
Integration 17 (07/15/16)
When running a distinct query, the 'stats' still return using the keys from MongoDB 2.x:
> mongo MongoDB shell version: 3.0.0-rc8 connecting to: test > db.runCommand({distinct: 'items', key: 'name', query: {offered: false}}) { "values" : [ ], "stats" : { "n" : 0, "nscanned" : 0, "nscannedObjects" : 0 }, "ok" : 1 }
Since the explain output has renamed those stats keys' names, perhaps the distinct query should do the same for consistency. Specifically, those keys should be nReturned, totalKeysExamined, and totalDocsExamined. Best to do that before 3.0 goes gold, as it'll be more difficult and clumsy to perform later.
- is related to
-
SERVER-23325 Rename legacy metrics to match current conventions
- Backlog
- related to
-
DRIVERS-314 Removal of 'stats' field from distinct command response
- Closed
-
SERVER-17862 Unify stats reporting for log/profiler across CRUD operations
- Closed