使用soar优化你的sql语句

/ 数据库 / 没有评论 / 39浏览

小米出品 https://github.com/XiaoMi/soar

1.下载

wget https://github.com/XiaoMi/soar/releases/download/${tag}/soar.${OS}-amd64 -O soar;
chmod a+x soar;

2.配置

#当前目录新建配置soar.yaml
test-dsn:
  addr: 127.0.0.1:3306
  schema: test
  user: xxx
  password: xxx
  disable: false
# 语法检查小工具
only-syntax-check: false
sampling-statistic-target: 100
sampling: false
log-level: 7
log-output: ./log/soar.log

3.执行

echo 'select * from wf_member' |./soar

优化建议: alt