Interview practice question
Dashboard query slow on large fact table
Data Engineering · Redshift · Beginner
A dashboard query filtering the last 7 days from a 2 billion row fact table takes over a minute. What do you check first?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Check the sort key: is the table sorted by date?
- Check if the filter uses the date column directly.
- Check vacuum and sorted percentage.
- Check joins and distribution in EXPLAIN.
- Consider a materialized view for the dashboard.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.