Bug #115122 Unneeded full table scan, although there is an index and condition
| Submitted: | 25 May 2024 11:17 | Modified: | 16 Jun 2024 9:10 |
|---|---|---|---|
| Reporter: | Ahmed Wahba | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Optimizer | Severity: | S5 (Performance) |
| Version: | 8.4 (Latest), 8.0.37 | OS: | Ubuntu (22.04 LTS) |
| Assigned to: | CPU Architecture: | ARM | |
| Tags: | nested query, performance, regression | ||
[25 May 2024 11:17]
Ahmed Wahba
[25 May 2024 11:22]
Ahmed Wahba
SQL script to create schema
Attachment: 01.schema.sql (application/octet-stream, text), 1.45 KiB.
[25 May 2024 11:24]
Ahmed Wahba
Python script to fill the tables with 5M rows (takes time)
Attachment: generator.py (text/x-python), 3.02 KiB.
[25 May 2024 11:48]
Ahmed Wahba
test_db part 1
Attachment: backup.sql.zstaa (application/octet-stream, text), 47.68 MiB.
[25 May 2024 11:50]
Ahmed Wahba
I uploaded a test database with 5 Million records on both tables, generated using the python script which I attached as well
[25 May 2024 11:51]
Ahmed Wahba
test_db part 2
Attachment: backup.sql.zstab (application/octet-stream, text), 43.52 MiB.
[6 Jun 2024 4:51]
MySQL Verification Team
Hello Ahmed Wahba, Thank you for the report and test case. Verified as described. regards, Umesh
[16 Jun 2024 9:10]
Ahmed Wahba
Hi Team, thanks for verifying the issue. what is the way forward? is there a target date? target fix version? Thanks.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.063 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.