vitessio / vt

Apache License 2.0
2 stars 0 forks source link

Add `keys` to vt #28

Closed systay closed 2 weeks ago

systay commented 2 weeks ago

This update introduces the keys command, which processes query logs by running vexplain keys on every query in the log. The output is written to a JSON log file, which captures detailed information about the column usage for each query. This provides an easy way to inspect and evaluate sharding key choices across a wide range of queries.

The resulting log file can be further analyzed using vt benchstat, which generates a summary of the key distribution and performance metrics. This workflow allows for efficient performance benchmarking and helps identify potential improvements in sharding strategies.