解决数据量大,分页查询慢的方案
摘要:1、如果能确认id是自增且id不中断的情况下,可直接用id做limit的限制条件,例:select * from table limit #id#,100. 2、如果能确认id是自增且id不中断的情况下,先用子查询查出id,再用between,例:select * from table where
阅读全文
posted @ 2020-10-15 10:12
posted @ 2020-10-15 10:12
posted @ 2018-06-14 09:50
posted @ 2018-02-07 17:41
posted @ 2018-01-14 21:42