Interview practice question
Join slowed by a skewed key
Data Engineering · SQL · Experienced
A join between orders and customers in a distributed engine takes hours, and one task runs far longer than others. How do you fix it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- One task much slower points to skew on the join key.
- Check key distribution, often NULLs or a few huge keys.
- Filter or handle NULL keys separately.
- Broadcast the smaller table if it fits.
- Salt the hot keys or split them into a separate join.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.