问题是从 MySql 读取信息架构......太慢了:
脚步:
1. MySql dump created manually by scripting all objects from existing
MySql db which is on AWS. (MySql Version 5.7)
2. Restored dump file on to Azure MySql (Version 5.7)
3. Re-pointed Application (Appian) which sits on AWS to newly created MySql db on Azure.
4. When tried to validate Application (Appian) Objects (Data Stores), which reads `Information_Schema` takes too long or gets timed out.
5. But reading data from the tables are faster.
根据检查innodb_stats_on_metadata的建议,此设置为 OFF。
还是没有运气!有什么建议么?
经过一番调查,发现下面的查询是一个很慢的查询。
SHOW FULL TABLES FROM `database` LIKE 'xyz'
大多数时候它做的是' checking permissions
'