-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
-
Fully Compatible
-
ALL
-
v7.0, v6.0
Downstream analysis is finding it hard to identify a single entry, since we flatten out the 'key' object into its components, resulting in something like 50 fields to compare to determine if two entries are the same key (but at different points in time). Adding the hash value will make this easier.
Note: there is a question in my mind about whether this should be the SHA256 hash of the materialized 'key' BSON obj, or whether it should be the 'absl::hashOf(const query_stats::Key&)'. I think that it should probably be the former to better ensure that the same 'key' will compare the same across different hosts and possibly different versions of software (which may slightly differ in the absl implementation). This will make it more expensive to compute, so we should be sure to look at performance numbers.
- is related to
-
SERVER-81281 Add query shape hash to output of $queryStats
- Closed