Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-314

Removal of 'stats' field from distinct command response

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: None
    • None

      We are looking to remove the 'stats' field from the distinct command response for 3.4. Distinct is the only command that provides statistics as part of its response and only does so when run against mongoD. mongoS does not provide.

      Here is what the mongoD distinct response looks like in 3.2. This change would remove the "stats" sub-document.

      {
          "waitedMS" : NumberLong(0),
          "values" : [
              99990,
              99991,
              99992,
              99993,
              99994,
              99995,
              99996,
              99997,
              99998,
              99999
          ],
          "stats" : {
              "n" : 10,
              "nscanned" : 10,
              "nscannedObjects" : 0,
              "timems" : 9,
              "planSummary" : "DISTINCT_SCAN { _id: 1 }"
          },
          "ok" : 1
      }
      

      If there are implications for your driver then please bring it up with james.wahlin otherwise validate the ticket.

            Assignee:
            rathi.gnanasekaran Rathi Gnanasekaran
            Reporter:
            rathi.gnanasekaran Rathi Gnanasekaran
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: