偏移offset查询优化

偏移offset查询优化 最近CTO说要优化一下关于offset的查询效率,状况是这样的,有一张10万多条数据的表,本来的查询方式是这样的:php <?php $offset=0; $limit=100; while(true){ // 这里就是模拟一下偏移量查询 $dataBaseData=$model->offset($offset)->limit($limit); if(!$dat
相关文章
相关标签/搜索