1
There are 4 settings to enable the parallel
and make the optimizations, but the documentation Postgresql does not say anything about values or calculations. My questions are:
1- How to calculate the values of
max_parallel_workers
,max_parallel_workers_per_gather
andmax_worker_processes
?2- The
work_mem
can be calculated on the basis of connections and memory (RAM), but thework_mem
need to change something if I enable the parallel?
My guess is: if the machine has 8 cores, the max_parallel_workers
would be 8 and the values of the worker process and by Gather would be 32 (8 * 4), the number 4 I took from the original configuration which is 4 Gathers by 1 Parallel work.