Snowflake Data Cloud (50 Qs)•Part 3: Advanced Optimization, Scale & Cortex AI (25 - 35)
Dynamic Tables vs Materialized Views: Declarative pipeline transformations.
senior LevelFormsPerformancePipes
In Simple Words:
- Materialized Views: Single-table query acceleration. Best for pre-computing aggregations or filters on single base tables. Cannot handle multi-table joins.
- Dynamic Tables: Declarative pipeline transformation engine:
- Define the desired end-state using SQL containing complex multi-table joins and window functions.
- Specify the target lag (
TARGET_LAG = '10 minutes'). - Snowflake's automated engine continuously computes the incremental deltas and refreshes downstream tables, completely replacing manual Streams and Tasks.