1
drop table if exists t1, t2;
3
a int not null auto_increment,
9
a int not null auto_increment,
14
insert into t1(b) values
23
insert into t2(b) select b from t1;
24
insert into t1(b) select b from t2;
25
insert into t2(b) select b from t1;
26
insert into t1(b) select b from t2;
27
insert into t2(b) select b from t1;
28
insert into t1(b) select b from t2;
29
insert into t2(b) select b from t1;
30
insert into t1(b) select b from t2;
31
insert into t2(b) select b from t1;
32
insert into t1(b) select b from t2;
33
insert into t2(b) select b from t1;
34
insert into t1(b) select b from t2;
35
insert into t2(b) select b from t1;
36
insert into t1(b) select b from t2;
37
insert into t2(b) select b from t1;
38
insert into t1(b) select b from t2;
39
insert into t2(b) select b from t1;
40
insert into t1(b) select b from t2;
41
select count(*) from t1;
44
select count(*) from t2;
49
show status like "key_read%";
53
select count(*) from t1 where b = 'test1';
56
show status like "key_read%";
60
select count(*) from t1 where b = 'test1';
63
show status like "key_read%";
69
select @@preload_buffer_size;
72
load index into cache t1;
73
Table Op Msg_type Msg_text
74
test.t1 preload_keys status OK
75
show status like "key_read%";
79
select count(*) from t1 where b = 'test1';
82
show status like "key_read%";
84
Key_read_requests 1068
88
show status like "key_read%";
92
set session preload_buffer_size=256*1024;
93
select @@preload_buffer_size;
96
load index into cache t1 ignore leaves;
97
Table Op Msg_type Msg_text
98
test.t1 preload_keys status OK
99
show status like "key_read%";
103
select count(*) from t1 where b = 'test1';
106
show status like "key_read%";
108
Key_read_requests 311
112
show status like "key_read%";
116
set session preload_buffer_size=1*1024;
117
select @@preload_buffer_size;
118
@@preload_buffer_size
120
load index into cache t1, t2 key (primary,b) ignore leaves;
121
Table Op Msg_type Msg_text
122
test.t1 preload_keys status OK
123
test.t2 preload_keys status OK
124
show status like "key_read%";
126
Key_read_requests 785
128
select count(*) from t1 where b = 'test1';
131
select count(*) from t2 where b = 'test1';
134
show status like "key_read%";
136
Key_read_requests 1266
140
show status like "key_read%";
144
load index into cache t3, t2 key (primary,b) ;
145
Table Op Msg_type Msg_text
146
test.t3 preload_keys Error Table 'test.t3' doesn't exist
147
test.t3 preload_keys error Corrupt
148
test.t2 preload_keys status OK
149
show status like "key_read%";
151
Key_read_requests 478
155
show status like "key_read%";
159
load index into cache t3 key (b), t2 key (c) ;
160
Table Op Msg_type Msg_text
161
test.t3 preload_keys Error Table 'test.t3' doesn't exist
162
test.t3 preload_keys error Corrupt
163
test.t2 preload_keys Error Key 'c' doesn't exist in table 't2'
164
test.t2 preload_keys status Operation failed
165
show status like "key_read%";