DROP TABLE IF EXISTS ids;
CREATE TABLE ids (
id INT PRIMARY KEY AUTO_INCREMENT
) DEFAULT CHARSET=UTF8MB4;
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 GLOBAL 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 with pushed condition; Using index
SET GLOBAL mroonga_max_n_records_for_estimate = DEFAULT;
DROP TABLE ids;
