傳統分頁: 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;