You ingest 50 million new clickstream rows per day into a partitioned and clustered BigQuery table called proj.analytics.events. A Looker Studio dashboard repeatedly runs this seven-day KPI query:
SELECT DATE(event_timestamp) AS event_date, country, COUNT(*) AS sessions FROM proj.analytics.events WHERE event_timestamp >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 DAY) GROUP BY event_date, country;
Dashboard latency now exceeds 4 seconds. You already enabled BI Engine, but the working set no longer fits in memory. Without changing any dashboard SQL, which action will most effectively cut both latency and cost?
Purchase a larger BI Engine reservation so the last seven days of raw data are fully cached in memory.
Move the table to Cloud Storage as a BigLake table and enable table-level result caching for the dashboard queries.
Create a materialized view that implements the same aggregation and rely on BigQuery's automatic incremental refresh and query-rewrite.
Replace COUNT(*) with APPROX_COUNT_DISTINCT and add a LIMIT clause to all dashboard queries.
Creating a BigQuery materialized view that exactly matches the dashboard's aggregation stores a pre-computed, column-compressed cache of the results. BigQuery refreshes that cache incrementally as new rows arrive and, through automatic query-rewrite, serves subsequent dashboard requests directly from the materialized view. That eliminates most scan and shuffle work, so response time typically drops to sub-second and slot consumption falls. Simply enlarging the BI Engine reservation may still fail as data grows, while converting to BigLake or rewriting dashboard SQL either does not address compute cost or violates the no-change constraint.
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 in BigQuery?
Open an interactive chat with Bash
How does query-rewrite work with materialized views in BigQuery?
Open an interactive chat with Bash
What is BI Engine in BigQuery and how does it interact with dashboards?
Open an interactive chat with Bash
What is a materialized view in BigQuery?
Open an interactive chat with Bash
How does query-rewrite work with materialized views in BigQuery?
Open an interactive chat with Bash
What is the difference between BI Engine and materialized views?
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 .