Bug #120772 UPDATE HISTOGRAM causes optimizer to use stale cardinalities and miss faster join order
Submitted: 25 Jun 10:27 Modified: 8 Jul 9:03
Reporter: Zack Morgan Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Optimizer Severity:S5 (Performance)
Version:9.7.1 and 8.0.31 OS:Ubuntu (22.04.4 LTS)
Assigned to: CPU Architecture:x86 (Intel(R) Xeon(R) Gold 5220 CPU @ 2.20GHz)
Tags: histogram, join-order, Optimizer, optimizer-trace, performance, statistics

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:

[25 Jun 10:31] Zack Morgan
This attachment contains a self-contained reproduction package.

Attachment: mysql_update_histogram_join_order_repro.zip (application/x-zip-compressed, text), 22.99 KiB.