[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: |
|
||||||||||||||||
| 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. |