SpinTheMic
Pro

Explain it in 60 seconds

Transactions and locking in Snowflake

Data Engineering · Snowflake · Experienced

How does Snowflake handle concurrent DML on the same table, and what problems can it cause?

What a strong answer covers

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

  • Snowflake uses snapshot isolation, readers never block writers.
  • UPDATE, DELETE and MERGE take locks that can block other DML on the same table.
  • Concurrent writers to the same table can queue behind each other and hit lock wait timeouts.
  • INSERTs (append-only) can usually run concurrently.
  • Design pipelines so one process owns DML on a table, or use partitioned staging tables then a single merge.
Practise this topic

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

See all topics