blob: 36cafd305ba09f61d59fa320e10742bb865bb3c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
set global innodb_defragment=1;
create table t1 (a int not null primary key auto_increment, b varchar(256), key second(a, b)) engine=innodb;
insert t1 select null, repeat('a', 256) from seq_1_to_100;
select count(*) from t1;
count(*)
100
start transaction;
select count(*) from t1;
count(*)
100
optimize table t1;
Table Op Msg_type Msg_text
test.t1 optimize status OK
drop table t1;
set global innodb_defragment=default;
|