您好,欢迎访问一九零五行业门户网

MySQL数据库优化概述四_MySQL

table type   possible_keys key     key_len ref           rows extra
tt    all    assignedpc    null    null    null          3872 using
             clientid,                                        where
             actualpc
et    eq_ref primary       primary 15      tt.actualpc   1
et_1  eq_ref primary       primary 15      tt.assignedpc 1
do    eq_ref primary       primary 15      tt.clientid   1
请注意,explain 结果中的 rows 字段的值也是mysql的连接优化程序大致猜测的,请检查这个值跟真实值是否基本一致。如果不是,可以通过在 select 语句中使用 straight_join 来取得更好的性能,同时可以试着在 from
分句中用不同的次序列出各个表
其它类似信息

推荐信息