SpinTheMic
Pro

Explain it in 60 seconds

Choosing a distribution key

Data Engineering · Redshift · Intermediate

How do you choose a good distribution key for a Redshift fact table?

What a strong answer covers

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

  • Pick a column used in large joins, like customer_id or order_id.
  • Column should have high cardinality and even distribution.
  • Avoid columns with skew, like status or nullable foreign keys with many NULLs.
  • Distribute fact and its biggest joined table on the same key for collocated joins.
  • Small dimensions use ALL distribution.
Practise this topic

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

See all topics