A retail analytics team stores 12 TB of daily sales data in a BigQuery table partitioned on transaction_date. Looker Studio dashboards query the table every few minutes, usually calculating SUM(sales) grouped by store_id and product_category while filtering on those same columns. Even with BI Engine enabled, queries now spill to on-demand slots and miss the performance SLO. The team needs the lowest-cost change that will reliably speed up the dashboard while preserving near-real-time freshness. What should they do?
Create a BigQuery materialized view that pre-aggregates sales by store_id and product_category and point the dashboards to the materialized view.
Add clustering on store_id and product_category to the existing partitioned table and disable BI Engine so queries rely on partition and cluster pruning.
Export each daily partition to Cloud Storage, load it into Cloud Bigtable, and query the data from Looker Studio through the Bigtable connector.
Increase the BI Engine reservation to twice its current size and leave the dashboards querying the base table.
Creating a BigQuery materialized view that pre-aggregates sales by store_id and product_category lets BigQuery cache the grouped results. Because materialized views are incrementally refreshed when the base table changes, the dashboard keeps near-real-time data but scans far less information, so BI Engine no longer overflows and overall cost drops. Simply buying more BI Engine memory improves speed but raises cost. Clustering the large base table may reduce scan volume, yet every query still has to read raw rows and maintain BI Engine's large cache. Off-loading data to Bigtable adds complexity, eliminates automatic SQL optimization, and does not suit aggregate SQL analytics used by Looker Studio.
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.
Why are BigQuery materialized views better for this use case?
Open an interactive chat with Bash
What is BI Engine memory and why does increasing it not work?
Open an interactive chat with Bash
What are the benefits and limitations of clustering in BigQuery?
Open an interactive chat with Bash
What is a BigQuery materialized view?
Open an interactive chat with Bash
How does BI Engine improve query performance in BigQuery?
Open an interactive chat with Bash
What are partitioning and clustering in BigQuery, and how do they differ?
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 .