SET DEFAULT_STORAGE_ENGINE='tokudb'; DROP TABLE IF EXISTS t1; create table t1 (a int, b int) engine=tokudb; insert into t1 values (1,1),(1,2),(2,1),(2,2); select count(*) from t1 where b > 0; count(*) 4 alter table t1 add clustering index b(b); explain select count(*) from t1 where b > 0; id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE t1 NA b b 5 NA NA NA select count(*) from t1 where b > 0; count(*) 4 DROP TABLE t1;