[SERVER-3444] Alter profiler to capture nscanned when doing counts Created: 18/Jul/11 Updated: 06/Dec/22 Resolved: 24/Jan/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Kenny Gorman | Assignee: | Backlog - Query Team (Inactive) |
| Resolution: | Duplicate | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Assigned Teams: |
Query
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Alter the profiler to capture nscanned for count() just like it would if it was a straight query. in 1.8.1: { "ts" : ISODate("2011-07-18T22:32:47.256Z"), "info" : "query platform_addressbook.$cmd ntoreturn:1 command: { count: \"contact\", query: { userId: \"000044607693\", groups: \"test-group\" }} reslen:64 30ms", "millis" : 30 } Would like it to be: } reslen:64 30ms", "millis" : 30 } |
| Comments |
| Comment by James Wahlin [ 24/Jan/17 ] |
|
We added "keysExamined" and "docsExamined" statistics to the profiler and slow diagnostic logging under |
| Comment by David Storch [ 24/Jan/17 ] |
|
james.wahlin, was this implemented in 3.4 as part of your work for |