ITPub博客

首页 > 数据库 > MySQL > Effective MySQL之SQL语句优化 小结

Effective MySQL之SQL语句优化 小结

原创 MySQL 作者:fiona8953 时间:2014-10-23 20:37:53 0 删除 编辑
EXPLAIN Output Format
 
MySQL Storage Engines List
 
Restrictions and Limitations on Partitioning
 
optimizer_switch的引入和配置
 
关于最佳数据架构(基准测试在优化SQL语句的作用)
 
mysqldumpslow — Summarize Slow Query Log Files
 
MySQL DML stats per table
使用mysqlbinlog命令为二进制日志生成聚合信息
$ mysqlbinlog /path/to/mysql-bin.000999 |  \
   grep -i -e "^update" -e "^insert" -e "^delete" -e "^replace" -e "^alter"  | \
   cut -c1-100 | tr '[A-Z]' '[a-z]' |  \
   sed -e "s/\t/ /g;s/\`//g;s/(.*$//;s/ set .*$//;s/ as .*$//" | sed -e "s/ where .*$//" |  \
   sort | uniq -c | sort -nr 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26477398/viewspace-1308381/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-06-13

  • 博文量
    284
  • 访问量
    222489