QuestionQ270

VerifiedProductionizing Data Pipelines

A data engineer is designing a Gold layer table for a BI team that needs to run complex aggregation queries. The requirements specify that the data must be precomputed to ensure low latency for dashboard users, while the underlying source data only changes once every few hours.

Which object type should be implemented in Unity Catalog to meet these requirements?

Explanation

Materialized views in Unity Catalog store the precomputed results of a query and refresh them either on a schedule or when triggered, rather than recalculating the aggregation on every read. This makes them ideal for BI dashboard workloads that require fast query response times on complex aggregations, especially when the source data updates infrequently (e.g., every few hours), since the materialized view does not need to refresh more often than the data changes. In contrast, streaming tables are optimized for continuously arriving data with incremental low-latency processing, external tables simply reference externally managed data without precomputation, and standard views recompute their defining query at each access, adding latency for complex aggregations.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!