Bug #121401 Join-order enumeration and final AccessPath disagree on equality-derived filter cost, causing ~230x slowdown
Submitted: 30 Sep 2:15 Modified: 30 Sep 7:30
Reporter: Zack Morgan Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Optimizer Severity:S5 (Performance)
Version:8.0.46, 8.4.11, 9.7.2, 26.07 OS:Ubuntu (22.04.4 LTS)
Assigned to: CPU Architecture:x86 (Intel(R) Xeon(R) Gold 5220 CPU @ 2.20GHz)
Tags: cardinality, cost-model, join-order, Optimizer

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:

[30 Sep 2:15] Zack Morgan
The attached reproduction script.

Attachment: mysql_join_filter_cost_repro.zip (application/x-zip-compressed, text), 11.25 KiB.