@@ -20,15 +20,15 @@ TABLE_SCHEMA TABLE_NAME INDEX_NAME ROWS_READ QUERIES
20
20
test just_a_test IND_just_a_test_first_name_last_name 1 1
21
21
test just_a_test IND_just_a_test_state 2 1
22
22
select * from information_schema.table_statistics where table_schema='test' and table_name='just_a_test';
23
- TABLE_SCHEMA TABLE_NAME ROWS_READ ROWS_CHANGED ROWS_CHANGED_X_INDEXES ROWS_INSERTED ROWS_UPDATED ROWS_DELETED KEY_READ_HITS KEY_READ_MISSES
24
- test just_a_test 18 5 5 5 0 0 2 0
23
+ TABLE_SCHEMA TABLE_NAME ROWS_READ ROWS_CHANGED ROWS_CHANGED_X_INDEXES ROWS_INSERTED ROWS_UPDATED ROWS_DELETED KEY_READ_HITS KEY_READ_MISSES PAGES_ACCESSED PAGES_READ_FROM_DISK
24
+ test just_a_test 18 5 5 5 0 0 2 0 0 0
25
25
alter table just_a_test drop key IND_just_a_test_first_name_last_name;
26
26
select * from information_schema.index_statistics where table_schema='test' and table_name='just_a_test';
27
27
TABLE_SCHEMA TABLE_NAME INDEX_NAME ROWS_READ QUERIES
28
28
test just_a_test IND_just_a_test_state 2 1
29
29
select * from information_schema.table_statistics where table_schema='test' and table_name='just_a_test';
30
- TABLE_SCHEMA TABLE_NAME ROWS_READ ROWS_CHANGED ROWS_CHANGED_X_INDEXES ROWS_INSERTED ROWS_UPDATED ROWS_DELETED KEY_READ_HITS KEY_READ_MISSES
31
- test just_a_test 23 5 5 5 0 0 2 0
30
+ TABLE_SCHEMA TABLE_NAME ROWS_READ ROWS_CHANGED ROWS_CHANGED_X_INDEXES ROWS_INSERTED ROWS_UPDATED ROWS_DELETED KEY_READ_HITS KEY_READ_MISSES PAGES_ACCESSED PAGES_READ_FROM_DISK
31
+ test just_a_test 23 5 5 5 0 0 2 0 0 0
32
32
alter table just_a_test drop column state;
33
33
select * from information_schema.index_statistics where table_schema='test' and table_name='just_a_test';
34
34
TABLE_SCHEMA TABLE_NAME INDEX_NAME ROWS_READ QUERIES
@@ -40,18 +40,18 @@ select * from just_a_test force index(primary) where id=8;
40
40
id first_name last_name address phone email
41
41
update just_a_test set first_name="unlucky" where id=5;
42
42
select * from information_schema.table_statistics where table_schema='test' and table_name='just_a_test';
43
- TABLE_SCHEMA TABLE_NAME ROWS_READ ROWS_CHANGED ROWS_CHANGED_X_INDEXES ROWS_INSERTED ROWS_UPDATED ROWS_DELETED KEY_READ_HITS KEY_READ_MISSES
44
- test just_a_test 31 6 6 5 1 0 4 1
43
+ TABLE_SCHEMA TABLE_NAME ROWS_READ ROWS_CHANGED ROWS_CHANGED_X_INDEXES ROWS_INSERTED ROWS_UPDATED ROWS_DELETED KEY_READ_HITS KEY_READ_MISSES PAGES_ACCESSED PAGES_READ_FROM_DISK
44
+ test just_a_test 31 6 6 5 1 0 4 1 0 0
45
45
delete from just_a_test where id=5;
46
46
select * from information_schema.table_statistics where table_schema='test' and table_name='just_a_test';
47
- TABLE_SCHEMA TABLE_NAME ROWS_READ ROWS_CHANGED ROWS_CHANGED_X_INDEXES ROWS_INSERTED ROWS_UPDATED ROWS_DELETED KEY_READ_HITS KEY_READ_MISSES
48
- test just_a_test 32 7 7 5 1 1 5 1
47
+ TABLE_SCHEMA TABLE_NAME ROWS_READ ROWS_CHANGED ROWS_CHANGED_X_INDEXES ROWS_INSERTED ROWS_UPDATED ROWS_DELETED KEY_READ_HITS KEY_READ_MISSES PAGES_ACCESSED PAGES_READ_FROM_DISK
48
+ test just_a_test 32 7 7 5 1 1 5 1 0 0
49
49
select * from information_schema.index_statistics where table_schema='test' and table_name='just_a_test';
50
50
TABLE_SCHEMA TABLE_NAME INDEX_NAME ROWS_READ QUERIES
51
51
test just_a_test PRIMARY 4 3
52
52
drop table just_a_test;
53
53
select * from information_schema.table_statistics where table_schema='test' and table_name='just_a_test';
54
- TABLE_SCHEMA TABLE_NAME ROWS_READ ROWS_CHANGED ROWS_CHANGED_X_INDEXES ROWS_INSERTED ROWS_UPDATED ROWS_DELETED KEY_READ_HITS KEY_READ_MISSES
54
+ TABLE_SCHEMA TABLE_NAME ROWS_READ ROWS_CHANGED ROWS_CHANGED_X_INDEXES ROWS_INSERTED ROWS_UPDATED ROWS_DELETED KEY_READ_HITS KEY_READ_MISSES PAGES_ACCESSED PAGES_READ_FROM_DISK
55
55
select * from information_schema.index_statistics where table_schema='test' and table_name='just_a_test';
56
56
TABLE_SCHEMA TABLE_NAME INDEX_NAME ROWS_READ QUERIES
57
57
create table just_a_test(id int not null primary key,first_name varchar(10),last_name varchar(10),address varchar(100),phone bigint,email varchar(30), state varchar(30),key(first_name,last_name),key(state));
@@ -75,12 +75,12 @@ test just_a_test PRIMARY 4 1
75
75
test just_a_test first_name 1 1
76
76
test just_a_test state 2 1
77
77
select * from information_schema.table_statistics where table_schema='test' and table_name='just_a_test';
78
- TABLE_SCHEMA TABLE_NAME ROWS_READ ROWS_CHANGED ROWS_CHANGED_X_INDEXES ROWS_INSERTED ROWS_UPDATED ROWS_DELETED KEY_READ_HITS KEY_READ_MISSES
79
- test just_a_test 7 5 15 5 0 0 3 0
78
+ TABLE_SCHEMA TABLE_NAME ROWS_READ ROWS_CHANGED ROWS_CHANGED_X_INDEXES ROWS_INSERTED ROWS_UPDATED ROWS_DELETED KEY_READ_HITS KEY_READ_MISSES PAGES_ACCESSED PAGES_READ_FROM_DISK
79
+ test just_a_test 7 5 15 5 0 0 3 0 0 0
80
80
drop table just_a_test;
81
81
select * from information_schema.index_statistics where table_schema='test' and table_name='just_a_test';
82
82
TABLE_SCHEMA TABLE_NAME INDEX_NAME ROWS_READ QUERIES
83
83
select * from information_schema.table_statistics where table_schema='test' and table_name='just_a_test';
84
- TABLE_SCHEMA TABLE_NAME ROWS_READ ROWS_CHANGED ROWS_CHANGED_X_INDEXES ROWS_INSERTED ROWS_UPDATED ROWS_DELETED KEY_READ_HITS KEY_READ_MISSES
84
+ TABLE_SCHEMA TABLE_NAME ROWS_READ ROWS_CHANGED ROWS_CHANGED_X_INDEXES ROWS_INSERTED ROWS_UPDATED ROWS_DELETED KEY_READ_HITS KEY_READ_MISSES PAGES_ACCESSED PAGES_READ_FROM_DISK
85
85
set global userstat=@save_userstat;
86
86
# End of 11.5 tests
0 commit comments