表使用的InnoDB,使用以下语句,数据有1400W,就统计个年龄段分别有多少人,索引age
select age,count(1) from user group by age使用show profile查看,发现sending data这种了7秒的时间
InnoDB_buffer_pool_size = 10G实在找不到优化了,难道已经到了mysql性能的瓶颈了?
select age,count(1) from user group by age使用show profile查看,发现sending data这种了7秒的时间
InnoDB_buffer_pool_size = 10G实在找不到优化了,难道已经到了mysql性能的瓶颈了?
机械盘换成SSD等;
会让普通查询快一点。