kingbase-top-sql-analyze
基于 sys_stat_statements 对 KingbaseES(金仓)实例做两阶段快照采集与差值分析,找出总耗时、单次最慢、高频调用、IO消耗、写放大、返回行数异常等多维度 TOP SQL,并给出索引/改写/批量化等具体优化建议与健康评分。触发场景包括:'帮我分析一下这个金仓库的慢SQL'、'金仓找TOP SQL'、'sys_stat_statements 分析'、'KingbaseES 性能诊断'、'哪些SQL最耗资源'、'帮我看看这个金仓实例的负载画像'、'SQL优化建议'、'缓存命中率低怎么排查'、'金仓 TOP SQL'、'kingbase top sql'、用户给出 KingbaseES 连接信息(host/port/user/password/dbname)并希望做性能巡检或SQL调优时。即使用户只说'帮我看看这个金仓库最近跑得怎么样'或'这些SQL要怎么优化'并提供了连接信息,也应使用本技能。KingbaseES 默认采用 PG 兼容模式(database_mode=pg),但 TOP SQL 取数视图是 public.sys_stat_statements 而非 pg_stat_statements,且 KES V9R1C10 无 wal_bytes 字段,写放大用 shared_blks_dirtied 等字段替代。
Source facts
- Repository
- digoal/skills
- Last source activity
- August 9, 2026 at 13:00
- Detected SKILL.md language
- Chinese
- Stars
- 3
- Forks
- 2
Install options
The review-first prompt is selected by default. You can switch to a direct command or download a local copy.
Review the source files
Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.