[DRIVERS-314] Removal of 'stats' field from distinct command response Created: 08/Jul/16  Updated: 15/Apr/19  Resolved: 15/Jul/16

Status: Closed
Project: Drivers
Component/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Rathi Gnanasekaran Assignee: Rathi Gnanasekaran
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-17275 Remove "stats" field from distinct co... Closed

 Description   

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.


Generated at Thu Feb 08 08:21:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.