1 drop table if exists t1;
2 CREATE TABLE t1 (a int not null primary key) engine=InnoDB;
3 set global innodb_limit_optimistic_insert_debug = 2;
4 insert into t1 values (1);
5 insert into t1 values (5);
6 insert into t1 values (4);
7 insert into t1 values (3);
8 insert into t1 values (2);
10 Table Op Msg_type Msg_text
11 test.t1 analyze status OK
12 select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
15 delete from t1 where a=4;
17 Table Op Msg_type Msg_text
18 test.t1 analyze status OK
19 select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
22 delete from t1 where a=5;
24 Table Op Msg_type Msg_text
25 test.t1 analyze status OK
26 select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
29 set global innodb_limit_optimistic_insert_debug = 10000;
30 delete from t1 where a=2;
32 Table Op Msg_type Msg_text
33 test.t1 analyze status OK
34 select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
37 insert into t1 values (2);
38 delete from t1 where a=2;
40 Table Op Msg_type Msg_text
41 test.t1 analyze status OK
42 select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
45 insert into t1 values (2);
46 delete from t1 where a=2;
48 Table Op Msg_type Msg_text
49 test.t1 analyze status OK
50 select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';