Bug #111367 | OFFSET 99 LIMIT 1 on a compound PK takes ages to execute. | ||
---|---|---|---|
Submitted: | 12 Jun 2023 15:36 | Modified: | 4 Aug 2023 15:09 |
Reporter: | Jean-François Gagné | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S5 (Performance) |
Version: | 8.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
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:
- On *nix platforms use the split command e.g.
split -b 50MB <my_large_archive> <my_split_archive_prefix>
- On windows use WinZip or a similar utility to split the large file
[12 Jun 2023 15:38]
Jean-François Gagné
[12 Jun 2023 16:06]
Jean-François Gagné
Optimizer trace for the slow query (new file after error with the 1st).
Attachment: mysql_8.0.33_optimizer_trace2.txt (text/plain), 31.26 KiB.