Bug #111367 OFFSET 99 LIMIT 1 on a compound PK takes ages to execute.
Submitted: 12 Jun 2023 15:36 Modified: 2 Mar 20:23
Reporter: Jean-François Gagné Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Optimizer Severity:S5 (Performance)
Version:8.0, 8.0.45, 8.4, 8.4.8 OS:Any
Assigned to: CPU Architecture:Any

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 Jun 2023 15:38] Jean-François Gagné
Optimizer trace for the slow query.

Attachment: mysql_8.0.33_optimizer_trace.txt (text/plain), 655 bytes.

[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.