1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
flush global status;
use test;
drop table if exists t1;
create table t1 (a int);
insert into t1 values (1),(2),(3);
select * from t1;
a
1
2
3
select * from t1;
a
1
2
3
select * from t1;
a
1
2
3
show global status like 'Handler%';
Variable_name Value
Handler_commit 0
Handler_delete 0
Handler_prepare 0
Handler_read_first 3
Handler_read_key 6
Handler_read_next 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd_next 12
Handler_rollback 0
Handler_savepoint 0
Handler_savepoint_rollback 0
Handler_update 0
Handler_write 3
use test;
select * from t1;
a
1
2
3
select * from t1;
a
1
2
3
select * from t1;
a
1
2
3
show global status like 'Handler%';
Variable_name Value
Handler_commit 0
Handler_delete 0
Handler_prepare 0
Handler_read_first 6
Handler_read_key 12
Handler_read_next 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd_next 39
Handler_rollback 0
Handler_savepoint 0
Handler_savepoint_rollback 0
Handler_update 0
Handler_write 3
flush global status;
show global status like 'Handler%';
Variable_name Value
Handler_commit 0
Handler_delete 0
Handler_prepare 0
Handler_read_first 0
Handler_read_key 0
Handler_read_next 0
Handler_read_prev 0
Handler_read_rnd 0
Handler_read_rnd_next 0
Handler_rollback 0
Handler_savepoint 0
Handler_savepoint_rollback 0
Handler_update 0
Handler_write 0
|