Interview practice question
Point lookups on a 30 billion row table
Data Engineering · Snowflake · Experienced
The support team runs lookups by customer_id on a 30 billion row events table clustered by event_date. Each lookup takes minutes. How do you make it fast?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Clustering by date doesn't help a filter on customer_id.
- Enable search optimization on customer_id for equality lookups.
- Alternatively, build a smaller table or materialized view clustered by customer_id for support use.
- Encourage adding a date range to queries when possible.
- Compare added maintenance cost against time saved.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.