We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f485ba commit df88019Copy full SHA for df88019
clickhouse/benchmark.sh
@@ -2,8 +2,11 @@
2
3
# Install
4
5
-curl https://clickhouse.com/ | sh
6
-sudo ./clickhouse install --noninteractive
+if [ ! -x /usr/bin/clickhouse ]
+then
7
+ curl https://clickhouse.com/ | sh
8
+ sudo ./clickhouse install --noninteractive
9
+fi
10
11
# Optional: if you want to use higher compression:
12
if (( 0 )); then
@@ -35,8 +38,11 @@ fi
35
38
36
39
clickhouse-client < create"$SUFFIX".sql
37
40
-wget --no-verbose --continue 'https://datasets.clickhouse.com/hits_compatible/hits.tsv.gz'
-gzip -d hits.tsv.gz
41
+if [ ! -f hits.tsv ]
42
43
+ wget --no-verbose --continue 'https://datasets.clickhouse.com/hits_compatible/hits.tsv.gz'
44
+ gzip -d hits.tsv.gz
45
46
47
clickhouse-client --time --query "INSERT INTO hits FORMAT TSV" < hits.tsv
48
0 commit comments