Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-3444

Alter profiler to capture nscanned when doing counts

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Duplicate
    • None
    • None
    • Querying
    • None
    • Fully Compatible

    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:
      { "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 }

      Attachments

        Issue Links

          Activity

            People

              backlog-server-query Backlog - Query Team (Inactive)
              kgorman Kenny Gorman
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: