Schema and Index Optimization
A table's model, partitioning, bucket distribution, sort keys, and indexes determine how much work queries perform. Start with schema choices, then select indexes for common predicates and use the query plan and profile to verify scan pruning.
Optimize the Table Schema
Choose the table model, partitioning and bucketing columns, Key columns, and field types to avoid data skew and fully use parallelism.
Optimize Table Indexes
Pick the prefix index, BloomFilter, NGram BloomFilter, or inverted index based on query patterns, and apply them to the right columns.
Optimize Table Scans
Use partition filters and EXPLAIN to verify which partitions a query scans.