Bug #121271 Equivalent range-predicate rewrite exposes ORDER BY cost-ranking inversion: 2.9x higher-cost plan runs 2.85x faster
Submitted: 12 Sep 2:30
Reporter: Zack Morgan Email Updates:
Status: Open Impact on me:
None 
Category:MySQL Server: Optimizer Severity:S5 (Performance)
Version:9.7.1 OS:Ubuntu (22.04.4 LTS)
Assigned to: CPU Architecture:x86 (Intel(R) Xeon(R) Gold 5220 CPU @ 2.20GHz)
Tags: cost-model, join-order, 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:

[12 Sep 2:31] Zack Morgan
mysql_orderby_rewrite_cost_inversion_repro_files

Attachment: mysql_orderby_rewrite_cost_inversion_repro.zip (application/x-zip-compressed, text), 41.30 KiB.