[DRIVERS-2228] Use the count command instead of collStats to implement estimatedDocumentCount Created: 07/Mar/22 Updated: 07/Jul/22 Resolved: 07/Jul/22 |
|
| Status: | Closed |
| Project: | Drivers |
| Component/s: | Stable API |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Alexander Golin (Inactive) | Assignee: | Patrick Freed |
| Resolution: | Done | Votes: | 0 |
| Labels: | size-small, spec-change | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Driver Changes: | Needed | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Server Compat: | 5.0, 5.3, 6.0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Quarter: | FY23Q2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Upstream Changes Summary: | The count command has been added to API version 1 for 6.0. With this change, the estimatedDocumentCount drivers helper can be changed to use the count command for versions 6.0.0+, as we previously the case for versions < 5.0.0. This change would allow the estimatedDocumentCount helper to return a count for non-materialized views. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Downstream Changes Summary: | Drivers should update their estimatedDocumentCount implementations to use the count command, regardless of the wire version of the connected server. The unified CRUD tests, legacy retryable reads tests, Atlas Data Lake tests, and the versioned API spec tests will need to be synced to mongodb/specifications@021cbc8. Lastly, the "Count API Details" section of the CRUD spec includes some documentation and release notes requirements that drivers will need to adhere to. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Driver Compliance: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
TBD pending decisions on |
| Comments |
| Comment by Githook User [ 02/May/22 ] |
|
Author: {'name': 'Patrick Freed', 'email': 'patrick.freed@mongodb.com', 'username': 'patrickfreed'}Message: |
| Comment by Githook User [ 26/Apr/22 ] |
|
Author: {'name': 'Patrick Freed', 'email': 'patrick.freed@mongodb.com', 'username': 'patrickfreed'}Message: |