Commit 600a2075 authored by Sergei Petrunia's avatar Sergei Petrunia

MariaRocks port: more of testcase Maria-fication

parent f246829e
...@@ -6,3 +6,4 @@ ...@@ -6,3 +6,4 @@
--loose-enable_rocksdb_perf_context_global --loose-enable_rocksdb_perf_context_global
--loose-enable-rocksdb_index_file_map --loose-enable-rocksdb_index_file_map
--loose-enable-rocksdb_dbstats --loose-enable-rocksdb_dbstats
--loose-enable-rocksdb_cfstats
...@@ -11,142 +11,142 @@ explain extended select * from t1 where a> 500 and a< 750; ...@@ -11,142 +11,142 @@ explain extended select * from t1 where a> 500 and a< 750;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range ka ka 5 NULL 1000 100.00 Using index condition 1 SIMPLE t1 range ka ka 5 NULL 1000 100.00 Using index condition
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`a` > 500) and (`test`.`t1`.`a` < 750)) Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`a` > 500) and (`test`.`t1`.`a` < 750))
explain extended select * from t1 where a< 750; explain extended select * from t1 where a< 750;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range ka ka 5 NULL 1000 100.00 Using index condition 1 SIMPLE t1 range ka ka 5 NULL 1000 100.00 Using index condition
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a` < 750) Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a` < 750)
explain extended select * from t1 where a> 500; explain extended select * from t1 where a> 500;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range ka ka 5 NULL 1000 100.00 Using index condition 1 SIMPLE t1 range ka ka 5 NULL 1000 100.00 Using index condition
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a` > 500) Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a` > 500)
explain extended select * from t1 where a>=0 and a<=1000; explain extended select * from t1 where a>=0 and a<=1000;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range ka ka 5 NULL 1000 100.00 Using index condition 1 SIMPLE t1 range ka ka 5 NULL 1000 100.00 Using index condition
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`a` >= 0) and (`test`.`t1`.`a` <= 1000)) Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`a` >= 0) and (`test`.`t1`.`a` <= 1000))
explain extended select * from t1 where b> 500 and b< 750; explain extended select * from t1 where b> 500 and b< 750;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range kb kb 5 NULL 1000 100.00 Using index condition 1 SIMPLE t1 range kb kb 5 NULL 1000 100.00 Using index condition
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`b` > 500) and (`test`.`t1`.`b` < 750)) Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`b` > 500) and (`test`.`t1`.`b` < 750))
explain extended select * from t1 where b< 750; explain extended select * from t1 where b< 750;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range kb kb 5 NULL 1000 100.00 Using index condition 1 SIMPLE t1 range kb kb 5 NULL 1000 100.00 Using index condition
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`b` < 750) Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`b` < 750)
explain extended select * from t1 where b> 500; explain extended select * from t1 where b> 500;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range kb kb 5 NULL 1000 100.00 Using index condition 1 SIMPLE t1 range kb kb 5 NULL 1000 100.00 Using index condition
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`b` > 500) Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`b` > 500)
explain extended select * from t1 where b>=0 and b<=1000; explain extended select * from t1 where b>=0 and b<=1000;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range kb kb 5 NULL 1000 100.00 Using index condition 1 SIMPLE t1 range kb kb 5 NULL 1000 100.00 Using index condition
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`b` >= 0) and (`test`.`t1`.`b` <= 1000)) Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`b` >= 0) and (`test`.`t1`.`b` <= 1000))
set @save_rocksdb_records_in_range = @@session.rocksdb_records_in_range; set @save_rocksdb_records_in_range = @@session.rocksdb_records_in_range;
set rocksdb_records_in_range = 15000; set rocksdb_records_in_range = 15000;
explain extended select a from t1 where a < 750; explain extended select a from t1 where a < 750;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range ka ka 5 NULL 15000 100.00 Using where; Using index 1 SIMPLE t1 range ka ka 5 NULL 15000 100.00 Using where; Using index
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` < 750) Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` < 750)
explain extended select a, b from t1 where a < 750; explain extended select a, b from t1 where a < 750;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 ALL ka NULL NULL NULL 20000 75.00 Using where 1 SIMPLE t1 ALL ka NULL NULL NULL 20000 75.00 Using where
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a` < 750) Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a` < 750)
explain extended select a from t1 where a = 700; explain extended select a from t1 where a = 700;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 ref ka ka 5 const 15000 100.00 Using index 1 SIMPLE t1 ref ka ka 5 const 15000 100.00 Using index
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` = 700) Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` = 700)
explain extended select a,b from t1 where a = 700; explain extended select a,b from t1 where a = 700;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 ref ka ka 5 const 15000 100.00 NULL 1 SIMPLE t1 ref ka ka 5 const 15000 100.00
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a` = 700) Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a` = 700)
explain extended select a from t1 where a in (700, 800); explain extended select a from t1 where a in (700, 800);
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 index ka ka 5 NULL 20000 100.00 Using where; Using index 1 SIMPLE t1 index ka ka 5 NULL 20000 100.00 Using where; Using index
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` in (700,800)) Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` in (700,800))
explain extended select a,b from t1 where a in (700, 800); explain extended select a,b from t1 where a in (700, 800);
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 ALL ka NULL NULL NULL 20000 100.00 Using where 1 SIMPLE t1 ALL ka NULL NULL NULL 20000 100.00 Using where
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a` in (700,800)) Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a` in (700,800))
set rocksdb_records_in_range=8000; set rocksdb_records_in_range=8000;
explain extended select a from t1 where a in (700, 800); explain extended select a from t1 where a in (700, 800);
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range ka ka 5 NULL 16000 100.00 Using where; Using index 1 SIMPLE t1 range ka ka 5 NULL 16000 100.00 Using where; Using index
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` in (700,800)) Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` in (700,800))
explain extended select a,b from t1 where a in (700, 800); explain extended select a,b from t1 where a in (700, 800);
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 ALL ka NULL NULL NULL 20000 80.00 Using where 1 SIMPLE t1 ALL ka NULL NULL NULL 20000 80.00 Using where
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a` in (700,800)) Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a` in (700,800))
set rocksdb_records_in_range = @save_rocksdb_records_in_range; set rocksdb_records_in_range = @save_rocksdb_records_in_range;
set global rocksdb_force_flush_memtable_now = true; set global rocksdb_force_flush_memtable_now = true;
explain extended select * from t1 where a> 500 and a< 750; explain extended select * from t1 where a> 500 and a< 750;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range ka ka 5 NULL 1000 100.00 Using index condition 1 SIMPLE t1 range ka ka 5 NULL 1000 100.00 Using index condition
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`a` > 500) and (`test`.`t1`.`a` < 750)) Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`a` > 500) and (`test`.`t1`.`a` < 750))
explain extended select * from t1 where a< 750; explain extended select * from t1 where a< 750;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range ka ka 5 NULL 1000 100.00 Using index condition 1 SIMPLE t1 range ka ka 5 NULL 1000 100.00 Using index condition
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a` < 750) Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a` < 750)
explain extended select * from t1 where a> 500; explain extended select * from t1 where a> 500;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range ka ka 5 NULL 1000 100.00 Using index condition 1 SIMPLE t1 range ka ka 5 NULL 1000 100.00 Using index condition
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a` > 500) Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a` > 500)
explain extended select * from t1 where a>=0 and a<=1000; explain extended select * from t1 where a>=0 and a<=1000;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range ka ka 5 NULL 1000 100.00 Using index condition 1 SIMPLE t1 range ka ka 5 NULL 1000 100.00 Using index condition
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`a` >= 0) and (`test`.`t1`.`a` <= 1000)) Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`a` >= 0) and (`test`.`t1`.`a` <= 1000))
explain extended select * from t1 where b> 500 and b< 750; explain extended select * from t1 where b> 500 and b< 750;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range kb kb 5 NULL 1000 100.00 Using index condition 1 SIMPLE t1 range kb kb 5 NULL 1000 100.00 Using index condition
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`b` > 500) and (`test`.`t1`.`b` < 750)) Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`b` > 500) and (`test`.`t1`.`b` < 750))
explain extended select * from t1 where b< 750; explain extended select * from t1 where b< 750;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range kb kb 5 NULL 1000 100.00 Using index condition 1 SIMPLE t1 range kb kb 5 NULL 1000 100.00 Using index condition
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`b` < 750) Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`b` < 750)
explain extended select * from t1 where b> 500; explain extended select * from t1 where b> 500;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range kb kb 5 NULL 1000 100.00 Using index condition 1 SIMPLE t1 range kb kb 5 NULL 1000 100.00 Using index condition
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`b` > 500) Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`b` > 500)
explain extended select * from t1 where b>=0 and b<=1000; explain extended select * from t1 where b>=0 and b<=1000;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range kb kb 5 NULL 1000 100.00 Using index condition 1 SIMPLE t1 range kb kb 5 NULL 1000 100.00 Using index condition
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`b` >= 0) and (`test`.`t1`.`b` <= 1000)) Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`b` >= 0) and (`test`.`t1`.`b` <= 1000))
explain extended select * from t1 where a>= 500 and a<= 500; explain extended select * from t1 where a>= 500 and a<= 500;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range ka ka 5 NULL 1000 100.00 Using index condition 1 SIMPLE t1 range ka ka 5 NULL 1000 100.00 Using index condition
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`a` >= 500) and (`test`.`t1`.`a` <= 500)) Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`a` >= 500) and (`test`.`t1`.`a` <= 500))
explain extended select * from t1 where b>= 500 and b<= 500; explain extended select * from t1 where b>= 500 and b<= 500;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range kb kb 5 NULL 1000 100.00 Using index condition 1 SIMPLE t1 range kb kb 5 NULL 1000 100.00 Using index condition
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`b` >= 500) and (`test`.`t1`.`b` <= 500)) Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`b` >= 500) and (`test`.`t1`.`b` <= 500))
explain extended select * from t1 where a< 750 and b> 500 and b< 750; explain extended select * from t1 where a< 750 and b> 500 and b< 750;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range ka,kb ka 5 NULL 1000 100.00 Using index condition; Using where 1 SIMPLE t1 range ka,kb ka 5 NULL 1000 100.00 Using index condition; Using where
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`a` < 750) and (`test`.`t1`.`b` > 500) and (`test`.`t1`.`b` < 750)) Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`a` < 750) and (`test`.`t1`.`b` > 500) and (`test`.`t1`.`b` < 750))
drop index ka on t1; drop index ka on t1;
drop index kb on t1; drop index kb on t1;
create index kab on t1(a,b); create index kab on t1(a,b);
...@@ -155,13 +155,13 @@ explain extended select * from t1 where a< 750 and b> 500 and b< 750; ...@@ -155,13 +155,13 @@ explain extended select * from t1 where a< 750 and b> 500 and b< 750;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range kab kab 5 NULL 1000 100.00 Using where; Using index 1 SIMPLE t1 range kab kab 5 NULL 1000 100.00 Using where; Using index
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`a` < 750) and (`test`.`t1`.`b` > 500) and (`test`.`t1`.`b` < 750)) Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`a` < 750) and (`test`.`t1`.`b` > 500) and (`test`.`t1`.`b` < 750))
set rocksdb_records_in_range=444; set rocksdb_records_in_range=444;
explain extended select * from t1 where a< 750 and b> 500 and b< 750; explain extended select * from t1 where a< 750 and b> 500 and b< 750;
id select_type table type possible_keys key key_len ref rows filtered Extra id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 range kab kab 5 NULL 444 100.00 Using where; Using index 1 SIMPLE t1 range kab kab 5 NULL 444 100.00 Using where; Using index
Warnings: Warnings:
Note 1003 /* select#1 */ select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`a` < 750) and (`test`.`t1`.`b` > 500) and (`test`.`t1`.`b` < 750)) Note 1003 select `test`.`t1`.`i` AS `i`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where ((`test`.`t1`.`a` < 750) and (`test`.`t1`.`b` > 500) and (`test`.`t1`.`b` < 750))
set rocksdb_records_in_range=0; set rocksdb_records_in_range=0;
CREATE TABLE `linktable` ( CREATE TABLE `linktable` (
`id1` bigint(20) unsigned NOT NULL DEFAULT '0', `id1` bigint(20) unsigned NOT NULL DEFAULT '0',
......
--source include/have_rocksdb.inc --source include/have_rocksdb.inc
--source include/have_partition.inc
# #
# SHOW ENGINE STATUS command # SHOW ENGINE STATUS command
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment