Bug #79554 | Missing hints for derived tables | ||
---|---|---|---|
Submitted: | 8 Dec 2015 9:18 | Modified: | 7 Sep 2016 13:56 |
Reporter: | Roy Lyseng | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 5.7.9 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[8 Dec 2015 9:18]
Roy Lyseng
[7 Sep 2016 13:56]
Paul DuBois
Posted by developer: Noted in 8.0.0 changelog. The optimizer now supports table-level hints for specifying whether derived tables or views should be merged into the outer query block rather than materialized using an internal temporary table. Examples: SELECT /*+ MERGE(dt) */ * FROM (SELECT * FROM t1) AS dt; SELECT /*+ NO_MERGE(dt) */ * FROM (SELECT * FROM t1) AS dt;