gzip.sim 1.2 KB
Newer Older
S
TD-1225  
Shengliang Guan 已提交
1 2 3 4 5
system sh/stop_dnodes.sh
sleep 3000
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c wallevel -v 0
system sh/cfg.sh -n dnode1 -c http -v 1
S
TD-1451  
Shengliang Guan 已提交
6
system sh/cfg.sh -n dnode1 -c maxSQLLength -v 340032
S
TD-1225  
Shengliang Guan 已提交
7 8 9 10 11 12 13 14 15 16 17 18 19 20
system sh/exec.sh -n dnode1 -s start

sleep 3000
sql connect

print ============================ dnode1 start

print ===============  step1 - prepare data
sql create database d1
sql use d1

sql create table table_rest (ts timestamp, i int) 
print sql length is 270KB
restful d1 table_rest 1591072800 10000 gzip
S
TD-1451  
Shengliang Guan 已提交
21 22 23 24 25 26 27 28 29 30
restful d1 table_rest 1591172800 10000 gzip
restful d1 table_rest 1591272800 10000 gzip
restful d1 table_rest 1591372800 10000 gzip
restful d1 table_rest 1591472800 10000 gzip
restful d1 table_rest 1591572800 10000 gzip
restful d1 table_rest 1591672800 10000 gzip
restful d1 table_rest 1591772800 10000 gzip
restful d1 table_rest 1591872800 10000 gzip
restful d1 table_rest 1591972800 10000 gzip

S
TD-1225  
Shengliang Guan 已提交
31 32
sql select * from table_rest;
print rows: $rows
S
TD-1451  
Shengliang Guan 已提交
33
if $rows != 100000 then
S
TD-1225  
Shengliang Guan 已提交
34 35 36
  return -1
endi

S
TD-1451  
Shengliang Guan 已提交
37 38
system curl -H 'Authorization: Taosd /KfeAzX/f9na8qdtNZmtONryp201ma04bEl8LcvLUd7a8qdtNZmtONryp201ma04' -d 'select * from d1.table_rest' 127.0.0.1:7111/rest/sql --compressed

S
TD-1225  
Shengliang Guan 已提交
39
system sh/exec.sh -n dnode1 -s stop -x SIGINT