Limit efficient pagination

Traditional paging: Select * from table limit 10000, 10;

Limit Principle: limit 10000, 10; slower the larger offset.


Recommended tab: Select * from table where id> 23584 limit 11; # 10 + 1 (page 10)

Select  * from table  where  id > 23584  limit  11;

Guess you like

Origin blog.csdn.net/fanghaotian2012/article/details/23449935