Explore removing StorageStats inheritance

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Execution Team 2023-01-23, Execution Team 2023-02-06
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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...

            Assignee:
            Yujin Kang Park
            Reporter:
            Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: