parallel_distributed_insert_select
Enables parallel distributedINSERT ... SELECT query.
If we execute INSERT INTO distributed_table_a SELECT ... FROM distributed_table_b queries and both tables use the same cluster, and both tables are either replicated or non-replicated, then this query is processed locally on every shard.
Possible values:
0โ Disabled.1โSELECTwill be executed on each shard from the underlying table of the distributed engine.2โSELECTandINSERTwill be executed on each shard from/to the underlying table of the distributed engine.
INSERT ... SELECT from a ReplicatedMergeTree or SharedMergeTree source can also be parallelized across replicas. To enable it:
parallel_distributed_insert_select = 2enable_parallel_replicas = 1
parallel_hash_join_threshold
When hash-based join algorithm is applied, this threshold helps to decide between usinghash and parallel_hash (only if estimation of the right table size is available).
The former is used when we know that the right table size is below the threshold.
parallel_non_joined_rows_processing
Allow multiple threads to process non-joined rows from the right table in parallel during RIGHT and FULL JOINs. This can speed up the non-joined phase when using theparallel_hash join algorithm with large tables.
When disabled, non-joined rows are processed by a single thread.