1
SET DEFAULT_STORAGE_ENGINE='tokudb';
2
# Establish connection conn1 (user = root)
3
drop table if exists s;
4
create table s (a int auto_increment, b int, c int, primary key (a));
6
# done inserting elements
7
set tokudb_create_index_online=1;
8
create index i_a on s(c);
9
# starting insert while create index is happening
11
select count(*) from s use index(primary);
14
select count(*) from s use index(i_a);