update `user_devices` set `updated_at` = '2017-12-06 15:03:41' where `id` = 50;
# Time: 2017-10-04T15:10:43.443216Z
# User@Host: qq[qq] @ [123.123.123.123] Id: 2000434
# Query_time: 6.211033 Lock_time: 0.000054 Rows_sent: 1 Rows_examined: 272641
SET timestamp=1507129843;
id
主键, innodb
引擎, 40
万条数据
explain 结果 type = range
mysql 版本 5.7
这种情况就两种可能:锁等待、IO太慢