mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
perfschema compilation, test and misc fixes
This commit is contained in:
@ -53,12 +53,15 @@ select 10*X.v + Y.v, 100*X.v + 10*Y.v + Z.v, 100*X.v + 10*Y.v + Z.v
|
||||
from t0 X, t0 Y, t0 Z;
|
||||
analyze table t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze status Engine-independent statistics collected
|
||||
test.t1 analyze status OK
|
||||
analyze table t2;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t2 analyze status Engine-independent statistics collected
|
||||
test.t2 analyze status OK
|
||||
analyze table t3;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t3 analyze status Engine-independent statistics collected
|
||||
test.t3 analyze status OK
|
||||
select * from t1 order by a;
|
||||
id1 a
|
||||
@ -111,14 +114,14 @@ id2 id3 c
|
||||
61 610 610
|
||||
61 611 611
|
||||
61 612 612
|
||||
explain select t1.*, t2.*, t3.*
|
||||
explain extended select t1.*, t2.*, t3.*
|
||||
from t1 join t2 using (id1) join t3 using (id2);
|
||||
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
|
||||
1 SIMPLE t1 NULL ALL NULL NULL NULL NULL 10 100.00 NULL
|
||||
1 SIMPLE t2 NULL ALL NULL NULL NULL NULL 100 10.00 Using where; Using join buffer (Block Nested Loop)
|
||||
1 SIMPLE t3 NULL ALL NULL NULL NULL NULL 1000 10.00 Using where; Using join buffer (Block Nested Loop)
|
||||
id select_type table type possible_keys key key_len ref rows filtered Extra
|
||||
1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00
|
||||
1 SIMPLE t2 ALL NULL NULL NULL NULL 100 100.00 Using where; Using join buffer (flat, BNL join)
|
||||
1 SIMPLE t3 ALL NULL NULL NULL NULL 1000 100.00 Using where; Using join buffer (incremental, BNL join)
|
||||
Warnings:
|
||||
Note 1003 /* select#1 */ select `test`.`t1`.`id1` AS `id1`,`test`.`t1`.`a` AS `a`,`test`.`t2`.`id1` AS `id1`,`test`.`t2`.`id2` AS `id2`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`id2` AS `id2`,`test`.`t3`.`id3` AS `id3`,`test`.`t3`.`c` AS `c` from `test`.`t1` join `test`.`t2` join `test`.`t3` where ((`test`.`t2`.`id1` = `test`.`t1`.`id1`) and (`test`.`t3`.`id2` = `test`.`t2`.`id2`))
|
||||
Note 1003 select `test`.`t1`.`id1` AS `id1`,`test`.`t1`.`a` AS `a`,`test`.`t2`.`id1` AS `id1`,`test`.`t2`.`id2` AS `id2`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`id2` AS `id2`,`test`.`t3`.`id3` AS `id3`,`test`.`t3`.`c` AS `c` from `test`.`t1` join `test`.`t2` join `test`.`t3` where `test`.`t3`.`id2` = `test`.`t2`.`id2` and `test`.`t2`.`id1` = `test`.`t1`.`id1`
|
||||
call before_payload();
|
||||
select t1.*, t2.*, t3.*
|
||||
from t1 join t2 using (id1) join t3 using (id2);
|
||||
@ -126,10 +129,13 @@ call after_payload();
|
||||
number_seen OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME INDEX_NAME OPERATION NUMBER_OF_BYTES
|
||||
11 TABLE test t1 NULL fetch 1
|
||||
1 TABLE test t1 NULL read external NULL
|
||||
1 TABLE test t1 NULL read normal NULL
|
||||
101 TABLE test t2 NULL fetch 1
|
||||
1 TABLE test t2 NULL read external NULL
|
||||
1 TABLE test t2 NULL read normal NULL
|
||||
1 TABLE test t3 NULL fetch 1000
|
||||
1 TABLE test t3 NULL read external NULL
|
||||
1 TABLE test t3 NULL read normal NULL
|
||||
OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME INDEX_NAME COUNT_STAR COUNT_READ COUNT_WRITE
|
||||
TABLE test t0 NULL 0 0 0
|
||||
TABLE test t1 NULL 11 11 0
|
||||
@ -145,14 +151,14 @@ alter table t2 add unique index(id2);
|
||||
alter table t2 add index(id1);
|
||||
alter table t3 add unique index(id3);
|
||||
alter table t3 add index(id2);
|
||||
explain select t1.*, t2.*, t3.*
|
||||
explain extended select t1.*, t2.*, t3.*
|
||||
from t1 join t2 using (id1) join t3 using (id2);
|
||||
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
|
||||
1 SIMPLE t1 NULL ALL id1 NULL NULL NULL 10 100.00 Using where
|
||||
1 SIMPLE t2 NULL ref id2,id1 id1 5 test.t1.id1 10 100.00 Using where
|
||||
1 SIMPLE t3 NULL ref id2 id2 5 test.t2.id2 10 100.00 NULL
|
||||
id select_type table type possible_keys key key_len ref rows filtered Extra
|
||||
1 SIMPLE t1 ALL id1 NULL NULL NULL 10 100.00 Using where
|
||||
1 SIMPLE t2 ref id2,id1 id1 5 test.t1.id1 10 100.00 Using where
|
||||
1 SIMPLE t3 ref id2 id2 5 test.t2.id2 10 100.00
|
||||
Warnings:
|
||||
Note 1003 /* select#1 */ select `test`.`t1`.`id1` AS `id1`,`test`.`t1`.`a` AS `a`,`test`.`t2`.`id1` AS `id1`,`test`.`t2`.`id2` AS `id2`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`id2` AS `id2`,`test`.`t3`.`id3` AS `id3`,`test`.`t3`.`c` AS `c` from `test`.`t1` join `test`.`t2` join `test`.`t3` where ((`test`.`t2`.`id1` = `test`.`t1`.`id1`) and (`test`.`t3`.`id2` = `test`.`t2`.`id2`))
|
||||
Note 1003 select `test`.`t1`.`id1` AS `id1`,`test`.`t1`.`a` AS `a`,`test`.`t2`.`id1` AS `id1`,`test`.`t2`.`id2` AS `id2`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`id2` AS `id2`,`test`.`t3`.`id3` AS `id3`,`test`.`t3`.`c` AS `c` from `test`.`t1` join `test`.`t2` join `test`.`t3` where `test`.`t3`.`id2` = `test`.`t2`.`id2` and `test`.`t2`.`id1` = `test`.`t1`.`id1`
|
||||
call before_payload();
|
||||
select t1.*, t2.*, t3.*
|
||||
from t1 join t2 using (id1) join t3 using (id2);
|
||||
@ -160,10 +166,13 @@ call after_payload();
|
||||
number_seen OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME INDEX_NAME OPERATION NUMBER_OF_BYTES
|
||||
11 TABLE test t1 NULL fetch 1
|
||||
1 TABLE test t1 id1 read external NULL
|
||||
1 TABLE test t1 id1 read normal NULL
|
||||
110 TABLE test t2 id1 fetch 1
|
||||
1 TABLE test t2 id2 read external NULL
|
||||
1 TABLE test t2 id2 read normal NULL
|
||||
100 TABLE test t3 id2 fetch 10
|
||||
1 TABLE test t3 id3 read external NULL
|
||||
1 TABLE test t3 id3 read normal NULL
|
||||
OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME INDEX_NAME COUNT_STAR COUNT_READ COUNT_WRITE
|
||||
TABLE test t0 NULL 0 0 0
|
||||
TABLE test t1 NULL 11 11 0
|
||||
|
Reference in New Issue
Block a user