Interview practice question
Spectrum query slow and expensive
Data Engineering · Redshift · Intermediate
A query joining a local table with a Spectrum external table is slow and scans a lot of data. How do you fix it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Check file format: convert CSV or JSON to Parquet.
- Ensure partitioning and partition filters.
- Compact small files.
- Filter and aggregate the external table before joining.
- Consider loading frequently used data into local tables.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.