| 1 |
table_create Logs TABLE_HASH_KEY ShortText |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Logs timestamp COLUMN_SCALAR Time |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
table_create LoadedLogs TABLE_HASH_KEY ShortText |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create LoadedLogs original_id COLUMN_SCALAR UInt32 |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
column_create LoadedLogs timestamp_text COLUMN_SCALAR ShortText |
| 10 |
[[0,0.0,0.0],true] |
| 11 |
table_create IDs TABLE_PAT_KEY UInt32 |
| 12 |
[[0,0.0,0.0],true] |
| 13 |
column_create IDs loaded_logs_original_id COLUMN_INDEX LoadedLogs original_id |
| 14 |
[[0,0.0,0.0],true] |
| 15 |
table_create Keys TABLE_PAT_KEY ShortText |
| 16 |
[[0,0.0,0.0],true] |
| 17 |
column_create Keys loaded_logs_key COLUMN_INDEX LoadedLogs _key |
| 18 |
[[0,0.0,0.0],true] |
| 19 |
load --table Logs |
| 20 |
[ |
| 21 |
{ |
| 22 |
"_key": "2015-02-03:1", |
| 23 |
"timestamp": "2015-02-03 10:49:00" |
| 24 |
}, |
| 25 |
{ |
| 26 |
"_key": "2015-02-03:2", |
| 27 |
"timestamp": "2015-02-03 12:49:00" |
| 28 |
}, |
| 29 |
{ |
| 30 |
"_key": "2015-02-04:1", |
| 31 |
"timestamp": "2015-02-04 00:00:00" |
| 32 |
} |
| 33 |
] |
| 34 |
[[0,0.0,0.0],3] |
| 35 |
log_level --level dump |
| 36 |
[[0,0.0,0.0],true] |
| 37 |
select Logs --load_table LoadedLogs --load_columns "_key, original_id, timestamp_text" --load_values "cast_loose(ShortText, timestamp, '') + ':' + _id, _id, timestamp" --limit 0 |
| 38 |
[ |
| 39 |
[ |
| 40 |
0, |
| 41 |
0.0, |
| 42 |
0.0 |
| 43 |
], |
| 44 |
[ |
| 45 |
[ |
| 46 |
[ |
| 47 |
3 |
| 48 |
], |
| 49 |
[ |
| 50 |
[ |
| 51 |
"_id", |
| 52 |
"UInt32" |
| 53 |
], |
| 54 |
[ |
| 55 |
"_key", |
| 56 |
"ShortText" |
| 57 |
], |
| 58 |
[ |
| 59 |
"timestamp", |
| 60 |
"Time" |
| 61 |
] |
| 62 |
] |
| 63 |
] |
| 64 |
] |
| 65 |
] |
| 66 |
#|i| [io][open] open existing file: <db/db.0000100> |
| 67 |
#|-| [obj][open] <256>(<Logs>):<48>(<table:hash_key>) |
| 68 |
#|i| [io][open] open existing file: <db/db.0000102> |
| 69 |
#|-| [obj][open] <258>(<LoadedLogs>):<48>(<table:hash_key>) |
| 70 |
#|i| [io][open] open existing file: <db/db.0000103> |
| 71 |
#|-| [obj][open] <259>(<LoadedLogs.original_id>):<64>(<column:fix_size>) |
| 72 |
#|i| [io][open] open existing file: <db/db.0000104> |
| 73 |
#|-| [obj][open] <260>(<LoadedLogs.timestamp_text>):<65>(<column:var_size>) |
| 74 |
#|i| [io][open] open existing file: <db/db.0000107> |
| 75 |
#|-| [obj][open] <263>(<Keys>):<49>(<table:pat_key>) |
| 76 |
#|i| [io][open] open existing file: <db/db.0000108> |
| 77 |
#|i| [io][open] open existing file: <db/db.0000108.c> |
| 78 |
#|-| [obj][open] <264>(<Keys.loaded_logs_key>):<72>(<column:index>) |
| 79 |
#|i| [io][open] open existing file: <db/db.0000105> |
| 80 |
#|-| [obj][open] <261>(<IDs>):<49>(<table:pat_key>) |
| 81 |
#|i| [io][open] open existing file: <db/db.0000106> |
| 82 |
#|i| [io][open] open existing file: <db/db.0000106.c> |
| 83 |
#|-| [obj][open] <262>(<IDs.loaded_logs_original_id>):<72>(<column:index>) |
| 84 |
#|i| [io][open] open existing file: <db/db.0000101> |
| 85 |
#|-| [obj][open] <257>(<Logs.timestamp>):<64>(<column:fix_size>) |
| 86 |
#|-| [obj][close] <257>(<Logs.timestamp>):<64>(<column:fix_size>) |
| 87 |
#|d| [io][close] <db/db.0000101> |
| 88 |
#|-| [obj][close] <264>(<Keys.loaded_logs_key>):<72>(<column:index>) |
| 89 |
#|d| [io][close] <db/db.0000108> |
| 90 |
#|d| [io][close] <db/db.0000108.c> |
| 91 |
#|-| [obj][close] <263>(<Keys>):<49>(<table:pat_key>) |
| 92 |
#|d| [io][close] <db/db.0000107> |
| 93 |
#|-| [obj][close] <262>(<IDs.loaded_logs_original_id>):<72>(<column:index>) |
| 94 |
#|d| [io][close] <db/db.0000106> |
| 95 |
#|d| [io][close] <db/db.0000106.c> |
| 96 |
#|-| [obj][close] <261>(<IDs>):<49>(<table:pat_key>) |
| 97 |
#|d| [io][close] <db/db.0000105> |
| 98 |
#|-| [obj][close] <259>(<LoadedLogs.original_id>):<64>(<column:fix_size>) |
| 99 |
#|d| [io][close] <db/db.0000103> |
| 100 |
#|-| [obj][close] <260>(<LoadedLogs.timestamp_text>):<65>(<column:var_size>) |
| 101 |
#|d| [io][close] <db/db.0000104> |
| 102 |
#|-| [obj][close] <258>(<LoadedLogs>):<48>(<table:hash_key>) |
| 103 |
#|d| [io][close] <db/db.0000102> |
| 104 |
#|i| [io][open] open existing file: <db/db.0000101> |
| 105 |
#|-| [obj][open] <257>(<Logs.timestamp>):<64>(<column:fix_size>) |
| 106 |
#|-| [obj][close] <257>(<Logs.timestamp>):<64>(<column:fix_size>) |
| 107 |
#|d| [io][close] <db/db.0000101> |
| 108 |
log_level --level notice |
| 109 |
[[0,0.0,0.0],true] |