Bug #100046 | Very slow plan with combination of OR+noncorrelated subqueries+ORDER BY+LIMIT | ||
---|---|---|---|
Submitted: | 30 Jun 2020 9:43 | Modified: | 30 Jun 2020 13:00 |
Reporter: | Saverio Miroddi | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 8.0.20 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[30 Jun 2020 9:43]
Saverio Miroddi
[30 Jun 2020 9:51]
Saverio Miroddi
Uploaded dataset as `mysql-bug-data-100046.zip`.
[30 Jun 2020 10:19]
Saverio Miroddi
Corrected the title.
[30 Jun 2020 13:00]
MySQL Verification Team
Hi Mr. Miroddi, Thank you for your bug report. However, this is not a bug. These nested queries are not correlated, but they are definitely dependent ones. That makes the execution much, much slower on any RDBMS. You can simplify your query and eliminate the nested queries. Not a bug.