Bug #100257 Optimizer chooses wrong index for ORDER BY LIMIT
Submitted: 20 Jul 2020 3:57 Modified: 28 Jul 2020 2:27
Reporter: Matias Sánchez Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Optimizer Severity:S4 (Feature request)
Version:8.0.21 OS:Any
Assigned to: CPU Architecture:Any
Tags: limit, Optimizer, order by

File: Maximum allowed size is 50MB.
Description:
Privacy:

If the data you need to attach is more than 50MB, you should create a compressed archive of the data, split it to 50MB chunks, and upload each of them as a separate attachment.

To split a large file:

[20 Jul 2020 4:07] Matias Sánchez
Optimizer trace when using index for order by

Attachment: nice_plan.txt (text/plain), 13.61 KiB.

[20 Jul 2020 4:08] Matias Sánchez
Optimizer trace when not using index for order by (FULL SCAN)

Attachment: wrong_plan.txt (text/plain), 17.20 KiB.