# Top SQL Summary

+ Visualize the Top 5 classes of SQL statements with the most CPU overhead
+ Support querying for specified TiDB and TiKV instances
+ Support statistical analysis of all running SQL statements
+ Support detailed execution information such as requests per second, average latency, and query plan

-------------------------------------------------------------
Usage Scenario

- By monitoring the graph, it was found that the CPU of some TiKV instances in the cluster was very high, and it was expected to understand which SQL statements the CPU hotspots came from, so as to optimize them and make better use of distributed resources.

- The cluster's overall CPU utilization is very high and the database queries are slow, need to quickly know which SQL statements are consuming the most CPU resources so that they can be optimized.

- The cluster's overall CPU utilization suddenly changed significantly, need to understand the difference in the main SQL resource utilization before and after the change.

- Analyze the current SQL statements that consume the most resources in the cluster, and need to optimize them.