我的 mysql 服务器已long_query_time = 2
配置,但我仍然在慢速查询日志中看到这些查询似乎很快:
# Time: 120730 5:06:41
# User@Host: <user> @ <Host> [<IP>]
# Query_time: 0.000412 Lock_time: 0.000060 Rows_sent: 5 Rows_examined: 5
SET timestamp=1343639201;
SELECT album_id FROM `TB_albums` where album_id!='res_4fe4333271bda7.42833845' and deleted is NULL order by `created_time` desc limit 5;
如您所见 Query_time: 0.000412 Lock_time: 0.000060 似乎远低于 2 秒
您知道为什么会报告这些“快速”查询吗?