Support estimated collection count in transactions

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: