Effective MySQL之SQL語句最佳化 小結

fiona8953發表於2014-10-23
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部落格 ” ,連結:http://blog.itpub.net/26477398/viewspace-1308381/,如需轉載,請註明出處,否則將追究法律責任。

相關文章