mirror of
https://github.com/MariaDB/server.git
synced 2025-01-24 15:54:37 +01:00
c5c9c4a824
git-svn-id: file:///svn/mysql/tests/mysql-test@48524 c7de825b-a66e-492c-adef-691d508d4ae1
15 lines
450 B
Text
Executable file
15 lines
450 B
Text
Executable file
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;
|