Choose storage objects and explain pruning
Choose a table lifecycle and diagnose why a selective predicate still scans many micro-partitions.
Choose storage objects and explain pruning
Work through the decision
A large sales table has months of data but a one-day query scans nearly every micro-partition. A staging table from the same feed must survive sessions but requires no Fail-safe. Which decisions are independent?
Check your reasoning
Use partition metadata and query profile to see whether date ranges overlap widely. Consider the filter expression and clustering pattern before adding maintenance cost. For cross-session scratch data, evaluate a transient table and its shorter protection lifecycle. Choose permanent objects for data with stronger recovery needs.
Compare the choices
- Partition pruning
- Use partition metadata and applicable predicates to avoid scanning impossible ranges.
- Transient table
- Persist across sessions without Fail-safe and with limited Time Travel. Use it for reconstructible data.
- Temporary table
- Keep a session-specific object with a lifecycle tied to that session.
- Dynamic table
- Maintain the result of a declared query against a target lag, subject to refresh capabilities and compute.
- Materialized view
- Maintain stored results for a supported view definition, trading maintenance cost for repeated query savings.
Test the decision
A predicate on April 3 can skip a partition whose dates run May 1–9. It cannot rule out a partition spanning March through June from those boundaries alone. Temporary tables have session scope. Iceberg tables use the Iceberg format, while an external table exposes metadata over staged files. A secure view can protect its definition for controlled sharing.
Practice the guide skills
- Predict which micro-partitions can be excluded using minimum and maximum values. Watch 36:49
- Explain why heavy overlap on the filter column reduces pruning and when clustering could improve it. Watch 38:28
- Compare retention, scope and rebuildability before choosing permanent, transient, temporary or external tables. Watch 42:34
- Explain when an Iceberg table and an external table expose different metadata and management capabilities. Watch 44:16
- Set a realistic target lag and identify the warehouse for a supported dynamic table refresh. Watch 46:11
- Compare a standard view, a secure view and a materialized view for a governed aggregation. Watch 46:40
Official objectives for this lesson
Related lesson · Choose a file format and a storage service
Choose storage objects and explain pruning quiz
Answer 3 questions. Check each answer for an explanation.