Debian Codegraph @

test/command/suite/load/hash/max.test

raw
1 # This is too slow with HTTP chunked.
2 #@require-interface stdio
3
4 #$GRN_HASH_INITIAL_MAX_OFFSET=2048
5 #$GRN_HASH_MAX_INDEX_SIZE=4194304
6
7 table_create Data TABLE_HASH_KEY Int64
8
9 log_level --level info
10 #@add-important-log-levels info
11 # 600 = 10min
12 #@timeout 600
13 #@disable-logging
14 #@generate-series 1 4194304 Data '{"_key" => i}'
15 #@enable-logging
16 #@timeout default
17 #@remove-important-log-levels info
18 log_level --level notice
19
20 select Data
21 select Data --filter '_key == 1'
22 select Data --filter '_key == 4194304'
23
24 load --table Data
25 [
26 {"_key": 4194305}
27 ]
28
29 load --table Data
30 [
31 {"_key": 1}
32 ]
33
34 delete Data --key 1
35 load --table Data
36 [
37 {"_key": 4194305}
38 ]
39 load --table Data
40 [
41 {"_key": 4194306}
42 ]