http://www.jianshu.com/p/13941129c826
a、cursor游标式分页
select * from table where id >cursor limit pageSize
优点:
1)、能够避免数据重复/遗漏
2)、limit性能不会cursor数值大小影响,性能稳定
缺点:
1)、适用于只是按照时间追加的方式的简单排序
http://www.jianshu.com/p/13941129c826a、cursor游标式分页select * from table where id >cursor limit pageSize优点:1)、能够避免数据重复/遗漏2)、limit性能不会cursor数值大小影响,性能稳定缺点:1)、适用于只是按照时间追加的方式的简单排序转载于...
http://www.jianshu.com/p/13941129c826
a、cursor游标式分页
select * from table where id >cursor limit pageSize
优点:
1)、能够避免数据重复/遗漏
2)、limit性能不会cursor数值大小影响,性能稳定
缺点:
1)、适用于只是按照时间追加的方式的简单排序
转载于:https://www.cnblogs.com/quietwalk/p/6472139.html
更多推荐
所有评论(0)