摘要:
最近没怎么搞SQL优化,碰巧数据库被慢查询搞挂了,于是拿来练练手。 问题 通过「SHOW FULL PROCESSLIST」语句很容易就能查到问题SQL,如下: SELECT post. FROM post INNER JOIN post_tag ON post.id = post_tag.post 阅读全文
摘要:
解释一: These are the following conditions under which temporary tables are created. UNION queries use temporary tables. Some views require temporary tab 阅读全文