COF-C02 · Question #351
How should clustering be used to optimize the performance of queries that run on a very large table?
The correct answer is B. Choose one high cardinality column as the clustering key. For optimizing the performance of queries that run on a very large table, it is recommended to choose one high cardinality column as the clustering key. This helps to co-locate similar rows in the same micro-partitions, improving scan efficiency in queries by skipping data that…
Question
How should clustering be used to optimize the performance of queries that run on a very large table?
Options
- AManually re-cluster the table regularly.
- BChoose one high cardinality column as the clustering key.
- CUse the column that is most-frequently used in query select clauses as the clustering key.
- DAssess the average table depth to identify how clustering is impacting the query.
How the community answered
(58 responses)- A3% (2)
- B86% (50)
- C2% (1)
- D9% (5)
Explanation
For optimizing the performance of queries that run on a very large table, it is recommended to choose one high cardinality column as the clustering key. This helps to co-locate similar rows in the same micro-partitions, improving scan efficiency in queries by skipping data that does not match filtering predicates.
Topics
Community Discussion
No community discussion yet for this question.