What are micro-partitions in Snowflake, and how do they contribute to query performance?

Quick Overview

Explain what micro-partitions are in Snowflake and how they help queries run faster. Tests your understanding of per-partition metadata, partition pruning, columnar storage, and how clustering changes the amount of data a query has to scan.

What are micro-partitions in Snowflake, and how do they contribute to query performance?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

What are micro-partitions in Snowflake, and how do they contribute to query performance? ```hint Think about metadata Consider what Snowflake could record about each micro-partition when it writes it, and how the planner could use that information before reading any table data. ``` ### What a Strong Answer Covers - What a micro-partition is: its size range, immutability, internal layout, and who creates it - The per-partition metadata Snowflake keeps and how pruning uses it to skip partitions - How the storage layout inside a partition limits the bytes a query reads - Why the physical ordering of rows across partitions decides how well pruning works - At least one case where pruning does little, and how to detect it ### Follow-up Questions - How would you decide whether a large table needs a clustering key, and what does maintaining one cost? - What happens to micro-partitions when you UPDATE or DELETE a handful of rows? - How would you use the query profile to tell whether a slow query suffers from poor pruning? - How does this design differ from user-defined partitioning in Hive or a traditional warehouse?

Overview: Explain what micro-partitions are in Snowflake and how they help queries run faster. Tests your understanding of per-partition metadata, partition pruning, columnar storage, and how clustering changes the amount of data a query has to scan.

General logo
General
Nov 25, 2026
mediumData ScientistOtherData Manipulation (SQL/Python)
0
0

What are micro-partitions in Snowflake, and how do they contribute to query performance?

What a Strong Answer Covers Guidance

  • What a micro-partition is: its size range, immutability, internal layout, and who creates it
  • The per-partition metadata Snowflake keeps and how pruning uses it to skip partitions
  • How the storage layout inside a partition limits the bytes a query reads
  • Why the physical ordering of rows across partitions decides how well pruning works
  • At least one case where pruning does little, and how to detect it

Follow-up Questions Guidance

  • How would you decide whether a large table needs a clustering key, and what does maintaining one cost?
  • What happens to micro-partitions when you UPDATE or DELETE a handful of rows?
  • How would you use the query profile to tell whether a slow query suffers from poor pruning?
  • How does this design differ from user-defined partitioning in Hive or a traditional warehouse?