Interview practice question
COPY slow due to many small files
Data Engineering · Redshift · Experienced
A COPY loading 200,000 tiny files from S3 takes much longer than expected. How do you fix it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Per-file overhead dominates with tiny files.
- Combine files upstream, for example with Firehose buffering or a compaction step.
- Aim for files of roughly 1 MB to 1 GB after compression, split evenly by slice count.
- Use a manifest for controlled loads.
- Consider auto-copy or streaming ingestion depending on the source.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.