mysql 5.7 is much slower than mysql 5.6 in medium sql
问题 We are upgrading to mysql 5.7 and just discover that it is much slower than its 5.6 counter part. While both have almost identical config, the 5.6 version execute most of the sqls in milliseconds, while the other takes around 1 sec or more for a middle complex sql like the one below for example. -- Getting most recent users that are email-verified and not banned SELECT `u`.* FROM `user` AS `u` INNER JOIN `user` user_table_alias ON user_table_alias.`id` = `u`.`id` LEFT JOIN `user_suspend` user