[SERVER-71439] Explore removing StorageStats inheritance Created: 17/Nov/22  Updated: 02/Feb/23  Resolved: 02/Feb/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Yujin Kang Park Assignee: Yujin Kang Park
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: Execution Team 2023-01-23, Execution Team 2023-02-06
Participants:

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

Generated at Thu Feb 08 06:19:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.