Alter profiler to capture nscanned when doing counts

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Query
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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:
      { "ts" : ISODate("2011-07-18T22:32:47.256Z"), "info" : "query platform_addressbook.$cmd reslen:2082 nscanned:292026 ntoreturn:1 command: { count: \"contact\", query:

      { userId: \"000044607693\", groups: \"test-group\" }

      } reslen:64 30ms", "millis" : 30 }

            Assignee:
            Backlog - Query Team (Inactive)
            Reporter:
            Kenny Gorman
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: