问题: 有一个需求,需要全表查询并返回,但是数据量较大 ,每次查询都要8S左右
解决方式:
查看innode缓存大小
show variables like 'innodb_buffer_pool%';
缓存换算成G显示:
SELECT @@innodb_buffer_pool_size/1024/1024/1024;
查询大小
SELECT @@innodb_buffer_pool_size
set global innodb_buffer_pool_size = xxx (xxx为 innodb_buffer_pool_size, 必须是 innodb_buffer_pool_chunk_size 的倍数)
参考:http://t.zoukankan.com/sxmny-p-12190772.html
本文参考链接:https://www.cnblogs.com/maohuidong/p/16319723.html