[MDEV-7905] EXPLAIN FORMAT=JSON and correlated vs uncorrelated subqueries Created: 2015-04-04 Updated: 2017-03-01 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.1 |
| Fix Version/s: | 10.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Sergei Petrunia |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | analyze-stmt, explain_json | ||
| Description |
|
Current EXPLAIN FORMAT=JSON output doesn't make it clear whether the subquery is correlated or not.
MariaDB produces:
MySQL produces:
Note the
these two look weird (does dependent == !cacheable always ?), but not being able to tell between correlated and uncorrelated subquery at all is not a solution. I think there are two possible options (correlated/non-correlated). |
| Comments |
| Comment by Sergei Petrunia [ 2015-04-04 ] | ||
|
sanja, any ideas why the subquery is not using subquery cache in this example? | ||
| Comment by Oleksandr Byelkin [ 2015-04-04 ] | ||
|
Where is the query? | ||
| Comment by Sergei Petrunia [ 2015-04-05 ] | ||
|
The query is
(ping sanja). | ||
| Comment by Oleksandr Byelkin [ 2015-04-08 ] | ||
|
Because the transformer run only for selects. |