mysql分页性能

- select * from userinfo limit 20000,10  # 数据越往后越慢

- 索引表中扫:

 select * from userinfo where id in (select id from userinfo limit 20000,10)  # 也慢

- select * from userinfo where id > 20000 limit 10  # 快,但需记录当前页记录的id

原文地址:https://www.cnblogs.com/stin/p/8671942.html