File tree Expand file tree Collapse file tree 4 files changed +28
-2
lines changed
clickhouse-datalake-partitioned Expand file tree Collapse file tree 4 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # Install
4+
35curl https://clickhouse.com/ | sh
46
7+ # Configure
8+
9+ > clickhouse-local.yaml echo "
10+ filesystem_caches:
11+ cache:
12+ path: '/dev/shm/clickhouse/'
13+ max_size_ratio_to_total_space: 0.9
14+ "
15+
16+ # Run the queries
17+
518./run.sh
619
720echo " Load time: 0"
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ cat queries.sql | while read -r query; do
99
1010 echo -n " ["
1111 for i in $( seq 1 $TRIES ) ; do
12- RES=$( ./clickhouse local --path . --time --format Null --query=" $query " 2>&1 ) # (*)
12+ RES=$( ./clickhouse local --path . --time --format Null --filesystem_cache_name cache -- query=" $query " 2>&1 ) # (*)
1313 [[ " $? " == " 0" ]] && echo -n " ${RES} " || echo -n " null"
1414 [[ " $i " != $TRIES ]] && echo -n " , "
1515
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # Install
4+
35curl https://clickhouse.com/ | sh
46
7+ # Configure
8+
9+ > clickhouse-local.yaml echo "
10+ filesystem_caches:
11+ cache:
12+ path: '/dev/shm/clickhouse/'
13+ max_size_ratio_to_total_space: 0.9
14+ "
15+
16+ # Run the queries
17+
518./run.sh
619
720echo " Load time: 0"
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ cat queries.sql | while read -r query; do
99
1010 echo -n " ["
1111 for i in $( seq 1 $TRIES ) ; do
12- RES=$( ./clickhouse local --path . --time --format Null --query=" $query " 2>&1 ) # (*)
12+ RES=$( ./clickhouse local --path . --time --format Null --filesystem_cache_name cache -- query=" $query " 2>&1 ) # (*)
1313 [[ " $? " == " 0" ]] && echo -n " ${RES} " || echo -n " null"
1414 [[ " $i " != $TRIES ]] && echo -n " , "
1515
You can’t perform that action at this time.
0 commit comments