SpinTheMic
Pro

Explain it in 60 seconds

Local vs remote spilling

Data Engineering · Snowflake · Experienced

What does it mean when a query spills to local or remote storage, and how do you fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Spilling happens when the warehouse runs out of memory for joins, sorts or aggregations.
  • First it spills to local SSD, which slows the query.
  • If local disk fills, it spills to remote storage, which is much slower.
  • Fixes include a bigger warehouse, reducing data early with filters, or splitting the query.
  • Check large ORDER BYs, wide SELECT *, and exploding joins.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics