Interview practice question
Streaming writes creating millions of small files
Data Engineering · Kafka Streaming · Experienced
A streaming job writing to an Iceberg table every 10 seconds created millions of small files, and queries are slow. How do you fix it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Commit interval too short for data volume.
- Increase trigger interval or buffer before committing.
- Schedule compaction (rewrite data files) and snapshot expiration.
- Partition design: avoid too fine partitions.
- Separate hot streaming table from query-optimized table if needed.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.