Cloud Warehouses · Lesson 3 of 5 · 14 min

Partitioning and clustering

Make the warehouse read less: filter on the partition column and cluster on what you filter by.

If a table is partitioned by day and your query says WHERE event_date = '2026-10-14', the warehouse reads one day instead of the whole table. Forget the filter and it reads everything. Clustering (Snowflake, BigQuery) sorts data inside partitions by a column you often filter on, so even more can be skipped.

The partition_filter column in the query log says whether the query filtered on the partition column. Compare the average scan with and without it:

← Previous: What a query costs