| 1 |
plugin_register sharding |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
plugin_register functions/number |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
table_create Memos_20170315 TABLE_NO_KEY |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create Memos_20170315 timestamp COLUMN_SCALAR Time |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
column_create Memos_20170315 content COLUMN_SCALAR Text |
| 10 |
[[0,0.0,0.0],true] |
| 11 |
table_create Memos_20170316 TABLE_NO_KEY |
| 12 |
[[0,0.0,0.0],true] |
| 13 |
column_create Memos_20170316 timestamp COLUMN_SCALAR Time |
| 14 |
[[0,0.0,0.0],true] |
| 15 |
column_create Memos_20170316 content COLUMN_SCALAR Text |
| 16 |
[[0,0.0,0.0],true] |
| 17 |
table_create Memos_20170317 TABLE_NO_KEY |
| 18 |
[[0,0.0,0.0],true] |
| 19 |
column_create Memos_20170317 timestamp COLUMN_SCALAR Time |
| 20 |
[[0,0.0,0.0],true] |
| 21 |
column_create Memos_20170317 content COLUMN_SCALAR Text |
| 22 |
[[0,0.0,0.0],true] |
| 23 |
load --table Memos_20170315 |
| 24 |
[ |
| 25 |
{"timestamp": "2017/03/15 00:00:00", "content": "Groonga is fast."}, |
| 26 |
{"timestamp": "2017/03/15 01:00:00", "content": "Mroonga is fast and easy to use."} |
| 27 |
] |
| 28 |
[[0,0.0,0.0],2] |
| 29 |
load --table Memos_20170316 |
| 30 |
[ |
| 31 |
{"timestamp": "2017/03/16 10:00:00", "content": "PGroonga is fast and easy to use."}, |
| 32 |
{"timestamp": "2017/03/16 11:00:00", "content": "Rroonga is fast and easy to use."} |
| 33 |
] |
| 34 |
[[0,0.0,0.0],2] |
| 35 |
logical_select Memos --shard_key timestamp --query 'content:@easy' |
| 36 |
[ |
| 37 |
[ |
| 38 |
0, |
| 39 |
0.0, |
| 40 |
0.0 |
| 41 |
], |
| 42 |
[ |
| 43 |
[ |
| 44 |
[ |
| 45 |
3 |
| 46 |
], |
| 47 |
[ |
| 48 |
[ |
| 49 |
"_id", |
| 50 |
"UInt32" |
| 51 |
], |
| 52 |
[ |
| 53 |
"content", |
| 54 |
"Text" |
| 55 |
], |
| 56 |
[ |
| 57 |
"timestamp", |
| 58 |
"Time" |
| 59 |
] |
| 60 |
], |
| 61 |
[ |
| 62 |
2, |
| 63 |
"Mroonga is fast and easy to use.", |
| 64 |
1489507200.0 |
| 65 |
], |
| 66 |
[ |
| 67 |
1, |
| 68 |
"PGroonga is fast and easy to use.", |
| 69 |
1489626000.0 |
| 70 |
], |
| 71 |
[ |
| 72 |
2, |
| 73 |
"Rroonga is fast and easy to use.", |
| 74 |
1489629600.0 |
| 75 |
] |
| 76 |
] |
| 77 |
] |
| 78 |
] |