Interview practice question
Lock waits from parallel merges
Data Engineering · Snowflake · Experienced
Several pipelines MERGE into the same large table at the same time, and you see lock wait timeouts and failed jobs. How do you redesign this?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- UPDATE, DELETE and MERGE lock the table, so concurrent merges queue.
- Have each source land into its own staging table.
- Run a single consolidated MERGE on a schedule.
- Or split the target so each pipeline writes its own table, then union in a view.
- Review LOCK_TIMEOUT and retries as a temporary fix only.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.