Add collection size and count read API

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • Storage Execution 2026-03-30, Storage Execution 2026-04-13
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Implement the read path of replicated size and count by following the procedure:

      1. Open storage engine snapshot at latest
      2. Determine valid-as-of: read config.fast_count_metadata_store and config.fast_count_metadata_store_timestamps
      3. Initialize metadata values from config.fast_count_metadata_store
      4. Read oplog from valid-as-of timestamp to the end and aggregate size and count deltas of the collection's entries. 

      FTDC will use estimated size and count values and should skip step 4.

            Assignee:
            Cedric Sirianni
            Reporter:
            Yuhong Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: