Clickhouse: querying distributed tables question

Created on 13 Feb 2020  路  1Comment  路  Source: ClickHouse/ClickHouse

When querying distributed tables, is it query all shards or querying a specific shard?

question

Most helpful comment

By default it use all shards cause we have no guaranty that could omit some of them. But there's a setting optimize_skip_unused_shards - Assumes that data is distributed by sharding_key. Optimization to skip unused shards if SELECT query filters by sharding_key.

>All comments

By default it use all shards cause we have no guaranty that could omit some of them. But there's a setting optimize_skip_unused_shards - Assumes that data is distributed by sharding_key. Optimization to skip unused shards if SELECT query filters by sharding_key.

Was this page helpful?
0 / 5 - 0 ratings