Bug #79294 | Query with double nested subquery much slower in 5.7 | ||
---|---|---|---|
Submitted: | 16 Nov 2015 15:31 | Modified: | 18 Dec 2015 18:46 |
Reporter: | Jonathan Corwin | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 5.7.9, 5.7.11 | OS: | Windows (2008 x64 / 8.1 x64) |
Assigned to: | CPU Architecture: | Any |
[16 Nov 2015 15:31]
Jonathan Corwin
[16 Nov 2015 15:33]
Jonathan Corwin
Table definitions and data
Attachment: slow.sql (application/octet-stream, text), 24.50 KiB.
[17 Nov 2015 8:35]
Jonathan Corwin
MySQL config file
Attachment: my.ini (application/octet-stream, text), 886 bytes.
[17 Nov 2015 8:47]
MySQL Verification Team
Thank you for the report and test case. Thanks, Umesh
[18 Dec 2015 18:46]
Paul DuBois
Noted in 5.7.11, 5.8.0 changelogs. Some queries with derived tables perform better with materialization than when merged into the outer query. The optimizer no longer uses merging by default for derived tables containing dependent subqueries in the select list.