Get startedGet started for free

Partition Pruning

The Snowy Peak data team runs the following query against the subscriptions table, which holds three years of billing data across hundreds of micro-partitions. Snowflake stores min and max start_date values for every micro-partition in the table.

What does Snowflake do with this metadata when the query runs?

SELECT COUNT(*)
FROM subscriptions
WHERE start_date = '2024-03-15'; 

This exercise is part of the course

Snowflake Architecture

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise