[MDEV-7833] ANALYZE FORMAT=JSON and Range checked for each record Created: 2015-03-25 Updated: 2015-04-03 Resolved: 2015-04-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.1 |
| Fix Version/s: | 10.1.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | analyze-stmt | ||
| Issue Links: |
|
||||||||
| Description |
|
ANALYZE FORMAT=JSON doesn't do a good job at "Range checked for each record" queries. Example:
Ok, now ANALYZE:
It shows how many records we got on average. Cool.
However, what is interesting is to know how many times "range checked" actually produced something, and which indexes it used. This info is not shown. |
| Comments |
| Comment by Sergei Petrunia [ 2015-03-25 ] | ||||||
|
I think, "range-checked-for-each-record" element besides "keys" should show something like this:
where nnnn are numbers how many times each option was chosen. r_keys should only list keys that are included in range-checked-for-each-record/keys. | ||||||
| Comment by Oleksandr Byelkin [ 2015-03-26 ] | ||||||
|
create table t3(a int); create table t4(a int); create table t1 (lb int, rb int); insert into t1 values (1,2); create table t2 (key1 int, col1 int, key(key1)); analyze format=json drop table t1,t2,t3,t4; | ||||||
| Comment by Oleksandr Byelkin [ 2015-04-02 ] | ||||||
|
revision-id: fc31f6d95720b4b946b8b68c816026d65831f347
— | ||||||
| Comment by Oleksandr Byelkin [ 2015-04-03 ] | ||||||
|
revision-id: 82a705badf50521de7c0d4b0713a04b018e26167
— | ||||||
| Comment by Sergei Petrunia [ 2015-04-03 ] | ||||||
|
Ok to push. |