ClickHouse / ClickHouse/ClickHouse
`cluster/clusterAllReplicas` queries will reuse connections from connection pool
Open
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
Assessment
This issue has not been assessed yet.