2015-01-15 20:09:57 +01:00
|
|
|
set default_storage_engine='tokudb';
|
|
|
|
drop table if exists t;
|
|
|
|
create table t (a int, b int, c int, primary key(a), key(b), key(c));
|
|
|
|
set tokudb_optimize_index_name='primary';
|
|
|
|
optimize table t;
|
|
|
|
Table Op Msg_type Msg_text
|
2015-02-18 15:16:27 +01:00
|
|
|
test.t optimize note Table does not support optimize, doing recreate + analyze instead
|
2015-01-15 20:09:57 +01:00
|
|
|
test.t optimize status OK
|
|
|
|
set tokudb_optimize_index_name='b';
|
|
|
|
optimize table t;
|
|
|
|
Table Op Msg_type Msg_text
|
2015-02-18 15:16:27 +01:00
|
|
|
test.t optimize note Table does not support optimize, doing recreate + analyze instead
|
2015-01-15 20:09:57 +01:00
|
|
|
test.t optimize status OK
|
|
|
|
set tokudb_optimize_index_name='c';
|
|
|
|
optimize table t;
|
|
|
|
Table Op Msg_type Msg_text
|
2015-02-18 15:16:27 +01:00
|
|
|
test.t optimize note Table does not support optimize, doing recreate + analyze instead
|
2015-01-15 20:09:57 +01:00
|
|
|
test.t optimize status OK
|
|
|
|
drop table t;
|