MySQL大数据分页查询优化


首先建立索引

然后再用子查询的方式优化查询语句:


select * from collect where id>=(
    select id from collect order by id limit 90000,1) limit 10;

发表回复