[SERVER-62551] Support estimated collection count in transactions Created: 12/Jan/22  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: James Wahlin Assignee: Backlog - Storage Execution Team
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-62966 Allow $approxCount within a transaction Closed
Related
related to COMPASS-5273 Investigate changes in PM-2639: Intro... Closed
Assigned Teams:
Storage Execution
Participants:

 Description   

The query subsystem uses Collection::numRecords() to retrieve estimated collection document count for the count command, $collStats stage and a proposed $approxCount stage. If used within a transaction this API does not provide a point in time estimate and the values returned will continue to change as collection writes occur. This request is to provide a snapshot mechanism for this information that will be safe to use within transaction allowing us to consider allowing use of $approxCount (and maybe $collStats with count) in a transaction.


Generated at Thu Feb 08 05:55:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.