This is a piece of SQLselectid, title, and createdatefrom table name, orderbycreatedateasclimit334570, 10. I asked people over there to read the oldest news title and read 10 rows of data.
This is a piece of SQLselectid, title, and createdatefrom table name, orderbycreatedateasclimit334570, 10. I asked people over there to read the oldest news title and read 10 rows of data.
This is an SQL statement they developed
Select id, title, createdate from table name order by createdate asc limit 334570,10;
The person who asked this question meant reading the oldest news title and reading 10 records from 334570 rows of data.
The index information is as follows:
The optimizer executes the following:
This reminds me of an optimization case of the second High-Performance edition.
Let's take a look at the SQL Execution:
This is after optimization:
The specific reason is that I will not make a shift here. For the U.S. server, please read the book (high-performance MySQL 2nd). below is the book:
This article is from the "hechun's technical column" blog. The Hong Kong virtual host must be kept here.
, Hong Kong Space