SpinTheMic
Pro

Snowflake · Beginner

What is a micro-partition in Snowflake?

By Anurag Pandey, Lead Data Engineer ·

The short answer

A micro-partition is the unit Snowflake stores table data in: a small, columnar unit holding 50 to 500 MB of uncompressed data, created automatically, with metadata that lets queries skip the files they don't need.

Practice this out loud

Opens this question on SpinTheMic. Start without signing up; sign in free for an AI report card.

Say it like this

About 45 seconds out loud. Use it as a model, then put it in your own words.

Snowflake splits every table into micro-partitions automatically, so I never define them myself. Each one holds roughly 50 to 500 megabytes of uncompressed data, stored by column and compressed per column. For every micro-partition, Snowflake keeps metadata such as the range of values in each column and the number of distinct values. That metadata is what makes queries fast: if I filter on order date, Snowflake reads the min and max dates and skips every micro-partition that can't match. That's called pruning. And an update doesn't change a micro-partition in place: Snowflake writes new micro-partitions and keeps the old ones for Time Travel. That's why Time Travel and zero-copy cloning are cheap.

What interviewers look for

  • You say they are created automatically, not defined by you like partitions in Hive or Postgres.
  • You connect the metadata to pruning, which is the real performance benefit.
  • You know DML writes new micro-partitions, and link that to Time Travel or cloning.

Common mistakes

  • Calling them the same as table partitions you choose with PARTITION BY.
  • Quoting the size as compressed. The 50 to 500 MB range is for uncompressed data.
  • Saying clustering keys create micro-partitions. They only influence how rows are grouped into them.

Follow-up questions to expect

  1. 1How would you check whether a query is pruning well?
  2. 2When would you add a clustering key to a table?
  3. 3What happens to micro-partitions when you run an UPDATE?
Practice this out loud

Opens this question on SpinTheMic. Start without signing up; sign in free for an AI report card.

Checked against

All interview question guides