mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 17:33:44 +01:00
18 lines
488 B
Text
18 lines
488 B
Text
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
|
|
connect con1,localhost,root;
|
|
start transaction;
|
|
select count(*) from t1;
|
|
count(*)
|
|
100
|
|
connection default;
|
|
optimize table t1;
|
|
Table Op Msg_type Msg_text
|
|
test.t1 optimize status OK
|
|
connection con1;
|
|
drop table t1;
|
|
set global innodb_defragment=default;
|