SpinTheMic
Pro

Interview practice question

Incremental merge getting slower over time

Data Engineering · dbt · Experienced

An incremental merge on a 5 TB Snowflake table gets slower every month even though daily volume is stable. How do you fix it?

What a strong answer covers

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

  • The merge scans the whole target to find matching keys.
  • Use incremental_predicates to limit the target scan, like last 7 days.
  • Make sure the target is clustered or loaded by that date column.
  • Or use delete+insert or microbatch for date-based loads.
  • Check the query profile for partitions scanned.
Practise this topic

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

See all topics