Bug #118009 SELECT query on primary key column deteriorates to full table scan when filter involves too long string

Submitted: 18 Apr 2025 7:13 Modified: 27 Apr 10:08
Reporter: Pawel Kudzia Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Optimizer Severity:S5 (Performance)
Version:8.4.5, 9.3.0 OS:Debian (12)
Assigned to: CPU Architecture:x86 (amd64)
Tags: regression

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:

  • 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
[9 Feb 10:11] Yakir Gibraltar
Patch for Bug#118009, Bug#118486, Bug#119770

Attachment: bug118009.patch (application/octet-stream, text), 24.07 KiB.

[9 Feb 20:25] Yakir Gibraltar
Patch for Bug#118009, Bug#118486, Bug#119770, Bug#119867 (combined)

Attachment: bug118009_combined.patch (application/octet-stream, text), 29.56 KiB.

[10 Feb 15:45] Yakir Gibraltar
clang-format fix

Attachment: bug118009_combined.patch (application/octet-stream, text), 29.56 KiB.

[12 Feb 13:36] Yakir Gibraltar
More fixes

Attachment: bug118009_combined.patch (application/octet-stream, text), 28.05 KiB.

[19 Feb 17:15] Yakir Gibraltar
Final patch

Attachment: bug118009_combined.patch (application/octet-stream, text), 40.58 KiB.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.042 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.