summaryrefslogtreecommitdiff
path: root/storage/mroonga/mysql-test/mroonga/storage/r/optimization_order_limit_optimized_time_greater_than.result
blob: 342947cc77ec7ac60108082967032d0bead55a29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
DROP TABLE IF EXISTS memos;
FLUSH STATUS;
SET NAMES UTF8;
CREATE TABLE memos (
id INT UNSIGNED NOT NULL,
writing_time TIME,
content TEXT,
FULLTEXT INDEX(content),
KEY(writing_time)
) DEFAULT CHARSET UTF8;
INSERT INTO memos VALUES(1, "1:23:30", "Today is fine.");
INSERT INTO memos VALUES(2, "1:23:31", "Today's lucky item is flower!"  );
INSERT INTO memos VALUES(3, "1:23:32", "I will do something today!");
INSERT INTO memos VALUES(4, "1:23:33", "I don't want to anything today...");
INSERT INTO memos VALUES(5, "1:23:34", "I'm sleepy today.");
SELECT * FROM memos
WHERE MATCH(content) AGAINST("today" IN BOOLEAN MODE) AND
writing_time > "1:23:31"
         ORDER BY id LIMIT 1,2;
id	writing_time	content
4	01:23:33	I don't want to anything today...
5	01:23:34	I'm sleepy today.
SHOW STATUS LIKE 'mroonga_fast_order_limit';
Variable_name	Value
Mroonga_fast_order_limit	1
DROP TABLE memos;