QuestionQ234

VerifiedCost & Performance Optimisation

A data team is optimizing an existing, large, rapidly growing orders table with high-cardinality columns. It has substantial data skew and needs frequent concurrent writes. The team notices that user_id, event_timestamp, and product_id are heavily used in analytical queries and filters, although these keys could change later as business requirements evolve.

Which partitioning strategy should the team select to optimize the table for immediate data skipping, incremental management over time, and flexibility?

Explanation

Liquid clustering with CLUSTER BY organizes data around commonly filtered high-cardinality columns, enabling data skipping. It is incremental when optimized, suits skewed and concurrent-write workloads, and permits clustering keys to be changed as access patterns evolve without rewriting existing data.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!