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

Explore removing StorageStats inheritance

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Execution Team 2023-01-23, Execution Team 2023-02-06

    Description

      1. Maybe we can assume StorageStats will always have the same fields, or most of them will be common, in different storage engines, and just make it a regular struct. Zero values are not reported in toBSON anyways. This way we don't have map lookups.
      2. Maybe we can just have the statistics map in WiredTigerStats directly in StorageStats if we really want to keep the ability to add arbitrary statistics. Probably would require using the desired statistic name as the key, so we would be hashing strings instead of the current long long key. 
      3. Probably there are other ways...

      Attachments

        Activity

          People

            yujin.kang@mongodb.com Yujin Kang Park
            yujin.kang@mongodb.com Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: