6
drop table if exists t1, t2;
11
a int not null auto_increment,
18
a int not null auto_increment,
24
insert into t1(b) values
34
insert into t2(b) select b from t1;
35
insert into t1(b) select b from t2;
36
insert into t2(b) select b from t1;
37
insert into t1(b) select b from t2;
38
insert into t2(b) select b from t1;
39
insert into t1(b) select b from t2;
40
insert into t2(b) select b from t1;
41
insert into t1(b) select b from t2;
42
insert into t2(b) select b from t1;
43
insert into t1(b) select b from t2;
44
insert into t2(b) select b from t1;
45
insert into t1(b) select b from t2;
46
insert into t2(b) select b from t1;
47
insert into t1(b) select b from t2;
48
insert into t2(b) select b from t1;
49
insert into t1(b) select b from t2;
50
insert into t2(b) select b from t1;
51
insert into t1(b) select b from t2;
53
select count(*) from t1;
54
select count(*) from t2;
56
flush tables; flush status;
57
show status like "key_read%";
59
select count(*) from t1 where b = 'test1';
60
show status like "key_read%";
61
select count(*) from t1 where b = 'test1';
62
show status like "key_read%";
64
flush tables; flush status;
65
select @@preload_buffer_size;
66
load index into cache t1;
67
show status like "key_read%";
68
select count(*) from t1 where b = 'test1';
69
show status like "key_read%";
71
flush tables; flush status;
72
show status like "key_read%";
73
set session preload_buffer_size=256*1024;
74
select @@preload_buffer_size;
75
load index into cache t1 ignore leaves;
76
show status like "key_read%";
77
select count(*) from t1 where b = 'test1';
78
show status like "key_read%";
80
flush tables; flush status;
81
show status like "key_read%";
82
set session preload_buffer_size=1*1024;
83
select @@preload_buffer_size;
84
load index into cache t1, t2 key (primary,b) ignore leaves;
85
show status like "key_read%";
86
select count(*) from t1 where b = 'test1';
87
select count(*) from t2 where b = 'test1';
88
show status like "key_read%";
90
flush tables; flush status;
91
show status like "key_read%";
92
load index into cache t3, t2 key (primary,b) ;
93
show status like "key_read%";
95
flush tables; flush status;
96
show status like "key_read%";
97
load index into cache t3 key (b), t2 key (c) ;
98
show status like "key_read%";