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

Add query stats key hash to output of $queryStats

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

            alyssa.clark@mongodb.com Alyssa Clark
            charlie.swanson@mongodb.com Charlie Swanson
            0 Vote for this issue
            4 Start watching this issue