我们的查询日志很慢,说:
表的创建和删除耗时超过1小时 预计将在5至7分钟内完成。
LOGFILE :
# Time: 171120 11:40:55
# User@Host: root[root] @ localhost [] Id: 35649
# Query_time: 6603.897055 Lock_time: 0.006114 Rows_sent: 0 Rows_examined: 5313105728
SET timestamp=1511178055;
CREATE table `table_1` as SELECT id FROM table_2;
# Time: 171120 11:40:56
# User@Host: root[root] @ localhost [] Id: 34286
# Query_time: 6312.637681 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
SET timestamp=1511178056;
drop table if exists `table_1`;
详细
MySQL Version: 5.6
Mysql engine: InnoDB
Total Tables : 760 + temp tables(create/drop)
Total Size : 70GB
RAM : 64 GB
InnoDB buffer pool size: 40G
问题:
调试问题的任何建议?