偏移offset查詢優化

偏移offset查詢優化 最近CTO說要優化一下關於offset的查詢效率,狀況是這樣的,有一張10萬多條數據的表,本來的查詢方式是這樣的:php <?php $offset=0; $limit=100; while(true){ // 這裏就是模擬一下偏移量查詢 $dataBaseData=$model->offset($offset)->limit($limit); if(!$dat
相關文章
相關標籤/搜索