Details
-
Improvement
-
Resolution: Won't Do
-
Major - P3
-
None
-
None
-
None
-
None
-
Execution Team 2023-01-23, Execution Team 2023-02-06
Description
- 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.
- 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.
- Probably there are other ways...