Optimizer Chooses Different Indexes on SELECT Using DISTINCT, ORDER BY and LIMIT Depending on LIMIT threshold
(Doc ID 2060319.1)
Last updated on NOVEMBER 02, 2017
Applies to:MySQL Server - Version 4.0 and later
Information in this document applies to any platform.
The following query execution time raises when limit crosses a certain threshold:
SELECT DISTINCT T1.a, T1.b, T1.c from T1 ORDER BY T1.c LIMIT offset, count
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!