You need to look at BigQuery data from a specific table multiple times a day. The underlying table you are querying is several petabytes in size, but you want to filter your data and provide simple aggregations to downstream users. You want to run queries faster and get up-to-date insights quicker. What should you do?
Materialized views are precomputed views that periodically cache the results of a query for increased performance and efficiency. BigQuery leverages precomputed results from materialized views and whenever possible reads only changes from the base tables to compute up-to-date results. Materialized views can significantly improve the performance of workloads that have the characteristic of common and repeated queries. Materialized views can also optimize queries with high computation cost and small dataset results, such as filtering and aggregating large tables. Materialized views are refreshed automatically when the base tables change, so they always return fresh data. Materialized views can also be used by the BigQuery optimizer to process queries to the base tables, if any part of the query can be resolved by querying the materialized view.Reference:
Introduction to materialized views
BigQuery Materialized View Simplified: Steps to Create and 3 Best Practices
Kasandra
6 months agoAntonio
7 months agoLezlie
7 months agoChun
7 months agoNina
8 months agoAsha
8 months agoBuffy
8 months agoRodney
8 months agoBernardine
8 months agoJeffrey
8 months agoKerry
8 months ago