Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-62551

Support estimated collection count in transactions

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

      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:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: