[MDEV-7811] EXPLAIN/ANALYZE FORMAT=JSON should show subquery cache Created: 2015-03-21 Updated: 2015-07-01 Resolved: 2015-07-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.1 |
| Fix Version/s: | 10.1.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | analyze-stmt | ||
| Issue Links: |
|
||||||||
| Sprint: | 10.1.6-1 | ||||||||
| Description |
|
EXPLAIN FORMAT=JSON and ANALYZE FORMAT=JSON should show subquery cache use. ANALYZE must include #hits and hit ratio.
EXPLAIN EXTENDED+subquery cache shows the query uses subquery cache.
|
| Comments |
| Comment by Oleksandr Byelkin [ 2015-03-22 ] | |||||
|
ghmmmm.... It looks like feature request.... | |||||
| Comment by Oleksandr Byelkin [ 2015-03-26 ] | |||||
|
revision-id: ec398a2ee84be0af3970d6247296fe1077b2f449
| |||||
| Comment by Sergei Petrunia [ 2015-04-03 ] | |||||
|
So, the current patch prints:
One problem with this is that it breaks the rule: ANALYZE members start with r_. All other members start with r: r_rows, r_filtered, r_keys. Another problem is printing hit/miss. When I have a cache I want to know:
it is inconvenient when I have to calculate hit/(hit + miss) manually. | |||||
| Comment by Sergei Petrunia [ 2015-04-03 ] | |||||
|
UNINITIZED has a typo, and it is not clear what it should mean. I can understand two states:
it's not clear what the third state should be. | |||||
| Comment by Sergei Petrunia [ 2015-04-03 ] | |||||
|
Review feedback provided on skype/irc. | |||||
| Comment by Oleksandr Byelkin [ 2015-04-07 ] | |||||
|
revision-id: 3027c25d522b637d796776396f8a940ff098c233
| |||||
| Comment by Sergei Petrunia [ 2015-04-09 ] | |||||
|
Patch pushed into 10.1-MDEV7811 patch, taking over |