mysql limit optimization

The performance of mysql's paging query method drops sharply when the amount of data reaches several hundred W. limit 3000000,10000

 

At this time, you need to use the auto-increment id to quickly locate

 

where id>0 limit 10000

where id > the maximum id limit of the last query 10000

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326991941&siteId=291194637