ClickHouse / ClickHouse/ClickHouse

`cluster/clusterAllReplicas` queries will reuse connections from connection pool

Open
#72,137 3 comments 0 reactions 0 assignees View on GitHub
comp-distributed external feature
Dominant language
C++
Stars
49.9k
Forks
9k
Avg merge
21h 32m
Merged PRs (30d)
515

Description

**Use case**

`cluster/clusterAllReplicas` usage with `view(...)`

`view(...)` is quite powerful feature, which allow you to better control which part of query is executed on which node (initiator/shard), but problem is that that cluster wrapper doesn't reuse connections, which is opposite from `Distributed` table, so it makes it less effective in case we have high QPS load

**Describe the solution you'd like**

`cluster/clusterAllReplicas` will reuse connections from connection pool.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.