mysql large paging query

A data .180 Wan, do limit 100 million and paging query 10, covering the first check the index id, at> = id do paging query, the following effects:

Annotations

1. The table name logs1

2. The amount of data 1,828,795 (1,800,000 rows)

3. Field

4. Index

The page boundary limit 100 million, or 10

(1) default index sql optimizer selected logurl low query efficiency

(2) Force index (manual selection index), taking the index covering (using index), greatly enhance the efficiency

Published 42 original articles · won praise 25 · views 70000 +

Guess you like

Origin blog.csdn.net/qq812858143/article/details/104655011