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

add collStats for time-series collections

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • Fully Compatible
    • Execution Team 2021-01-25

      Unlike for regular read-only views, it makes sense for time-series collections to support the collStats command. Most of the stats would come from the actual bucket collection, except for count (unfortunately it's not currently possible to store that for a time-series collection), the derived avgObjSize and storage engine stats, such as the very verbose wiredTiger section: for that level of detail it makes sense to directly get stats from the buckets collection.

      Additional stats could be bucketCount (which is count of the buckets collection), and avgBucketSize and possibly bucketNs or similar. A question is whether to include execution stats, such as the number of insert operations vs updates, measurements per commit, buckets closed due to size/count/time constraints, new buckets created due to time going backward, new metadata etc. Some of the more global bucket catalog information may be better included in a new serverStatus section instead.

            Assignee:
            gregory.noma@mongodb.com Gregory Noma
            Reporter:
            geert.bosch@mongodb.com Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: