File tree Expand file tree Collapse file tree
images/tiler-imposm/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,9 +54,11 @@ function refresh_mviews_group() {
5454
5555 local work_mem=" $LIGHT_WORK_MEM "
5656 local maint_mem=" $LIGHT_MAINT_MEM "
57+ local parallel_workers=" ${LIGHT_PARALLEL_WORKERS:- 0} "
5758 if [ " $mem_profile " = " heavy" ]; then
5859 work_mem=" $HEAVY_WORK_MEM "
5960 maint_mem=" $HEAVY_MAINT_MEM "
61+ parallel_workers=" ${HEAVY_PARALLEL_WORKERS:- 4} "
6062 fi
6163
6264 local run_loop=" ${REFRESH_LOOP:- true} "
@@ -72,6 +74,7 @@ function refresh_mviews_group() {
7274 -c " SET statement_timeout = 0" \
7375 -c " SET work_mem = '$work_mem '" \
7476 -c " SET maintenance_work_mem = '$maint_mem '" \
77+ -c " SET max_parallel_workers_per_gather = $parallel_workers " \
7578 -c " REFRESH MATERIALIZED VIEW CONCURRENTLY $mview ;" 2>&1 ) || exit_code=$?
7679 local elapsed=$(( SECONDS - start_time))
7780 if [ $exit_code -eq 0 ]; then
You can’t perform that action at this time.
0 commit comments