summaryrefslogtreecommitdiff
path: root/storage/mroonga/mysql-test/mroonga/storage/r/variable_max_n_records_for_estimate_session.result
blob: aca9d75c20fd3482d8b794b63845ddb070d95033 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
DROP TABLE IF EXISTS ids;
CREATE TABLE ids (
id INT PRIMARY KEY AUTO_INCREMENT
) DEFAULT CHARSET=UTF8;
INSERT INTO ids VALUES (1);
INSERT INTO ids VALUES (2);
INSERT INTO ids VALUES (3);
INSERT INTO ids VALUES (4);
INSERT INTO ids VALUES (5);
INSERT INTO ids VALUES (6);
INSERT INTO ids VALUES (7);
INSERT INTO ids VALUES (8);
INSERT INTO ids VALUES (9);
INSERT INTO ids VALUES (10);
SET mroonga_max_n_records_for_estimate = 1;
EXPLAIN SELECT * FROM ids WHERE id > 5;
id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
1	SIMPLE	ids	range	PRIMARY	PRIMARY	4	NULL	1	Using where; Using index
SET mroonga_max_n_records_for_estimate = DEFAULT;
DROP TABLE ids;