Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix multi range read disk sweep. refs #1959
- Loading branch information
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
mysql-test/mroonga/wrapper/multi_range_read/r/disk_sweep.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| DROP TABLE IF EXISTS many_records; | ||
| SET optimizer_switch='mrr_cost_based=off'; | ||
| CREATE TABLE many_records ( | ||
| id INT PRIMARY KEY AUTO_INCREMENT, | ||
| value INT, | ||
| KEY (value) | ||
| ) COMMENT='engine "InnoDB"'; | ||
| INSERT INTO many_records (value) VALUES (0), (1), (2), (3); | ||
| EXPLAIN SELECT * FROM many_records | ||
| WHERE value IN (0, 2); | ||
| id select_type table type possible_keys key key_len ref rows Extra | ||
| 1 SIMPLE many_records range value value 5 NULL 2 Using where; Using MRR | ||
| SELECT * FROM many_records | ||
| WHERE value IN (0, 2); | ||
| id value | ||
| 1 0 | ||
| 3 2 | ||
| DROP TABLE many_records; |