Performance of SQL Command with LIMIT Clause and Index on ORDER BY Clause when Many Rows Match Conditions from WHERE Clause
Last updated on DECEMBER 29, 2016
Applies to:MySQL Server - Version 5.0 and later
Information in this document applies to any platform.
- SQL command with ORDER BY and LIMIT clauses (sometimes) shows long execution times.
- Explain output shows big number in "row" column the query when LIMIT and ORDER BY parts are commented out.
- Index exist for ORDER BY condition.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms