传统分页: Select * from table limit 10000, 10;
Limit 原理:limit 10000, 10; 偏移量越大则越慢。
推荐分页: Select * from table where id > 23584 limit 11; # 10 + 1 (每页10条)
Select * from table where id > 23584 limit 11;
传统分页: Select * from table limit 10000, 10;
Limit 原理:limit 10000, 10; 偏移量越大则越慢。
推荐分页: Select * from table where id > 23584 limit 11; # 10 + 1 (每页10条)
Select * from table where id > 23584 limit 11;