Your team maintains a 5-TB denormalized sales table in BigQuery that feeds several Looker Studio dashboards. Each dashboard refreshes every few minutes by running an identical SQL statement that calculates yesterday's total revenue, order count, and average order value per region, product category, and channel. Users report 10-second load times, and Finance is concerned about steadily rising query costs. You cannot modify the SQL embedded in the dashboards, but results must always be no more than 30 minutes behind the source table. Which architectural change will most effectively cut both latency and cost without requiring changes in the BI tool?
Purchase and assign sufficient BigQuery BI Engine in-memory capacity to the project so dashboards can read from the in-memory cache instead of the underlying table.
Create a materialized view that pre-aggregates yesterday's revenue, order count, and average order value by region, product, and channel, schedule its automatic refresh, and let BigQuery's optimizer transparently rewrite the existing dashboard queries to use it.
Rely on BigQuery's default query result cache and instruct dashboard owners to enable use cached results in every report.
Convert the sales table to a daily partitioned and region-clustered table so that queries read only the latest partition and clustered ranges.
A BigQuery materialized view can store the pre-aggregated results (revenue, order count, and average order value by region, product, and channel). BigQuery refreshes the materialized view automatically and incrementally, typically within 30 minutes, so the dashboards continue to display recent data. Because the BigQuery optimizer can transparently rewrite incoming queries to use an eligible materialized view, no changes are required in the existing Looker Studio SQL. Query latency is reduced because the engine scans only the much smaller cached result instead of the 5-TB base table, and you pay only for the bytes processed in that cached result, lowering costs.
Partitioning and clustering the base table would cut scanned bytes for date-filtered queries, but every dashboard refresh would still scan all rows for the selected day and perform aggregations at runtime. Enabling query result caching helps only when the identical query text is rerun by the same user and expires after 24 hours; parameterized dashboard queries typically bypass this cache. Provisioning BI Engine memory can accelerate repeated queries, but it incurs an additional cost allocation and does not reduce the amount of data scanned from storage; it also does not guarantee the 30-minute freshness requirement without materializing aggregates.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a materialized view and how does it differ from a standard view in BigQuery?
Open an interactive chat with Bash
What does the BigQuery optimizer do with materialized views?
Open an interactive chat with Bash
How does automatic refresh in a materialized view work in BigQuery?
Open an interactive chat with Bash
GCP Professional Data Engineer
Preparing and using data for analysis
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .