mirror of
https://github.com/MariaDB/server.git
synced 2025-08-31 22:22:30 +03:00
16 lines
454 B
Plaintext
16 lines
454 B
Plaintext
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 index b(b) clustering=yes;
|
|
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;
|