Cloud Technology

Best practices for reducing BigQuery analysis costs with large datasets over 100 Terabytes?

MI Asked by Michael Stevens · 10-09-2023
0 upvotes 8,768 views 0 comments
The question

Our monthly BigQuery bill is skyrocketing as our data warehouse grows. We are currently using the on-demand pricing model and running complex JOINs across several large tables. Are there specific partitioning or clustering strategies that can help prune the data scanned? Also, would switching to capacity-based (slots) pricing be more cost-effective at this scale? 

3 answers

0
AM
Answered on 12-09-2023

At 100TB, you must implement Partitioning and Clustering immediately. Use partitioning on a timestamp or date column to ensure queries only scan relevant days of data. Clustering on frequently filtered columns (like user_id or region) further organizes data within those partitions, significantly reducing the "bytes billed." Also, stop using SELECT * and only call the columns you need. Regarding pricing, if your baseline slot usage is consistently high, capacity-based pricing with "Autoscaling Slots" provides a more predictable monthly spend compared to the unpredictable nature of the on-demand $5 per TB model. 

0
CH
Answered on 14-09-2023

Are you currently using Materialized Views for those complex JOINs to avoid re-calculating the same data frequently?

JA 16-09-2023

Christopher, we haven't tried Materialized Views yet because I was worried about the refresh costs. Does the background maintenance cost outweigh the query savings for datasets that update every hour? Actually, for hourly updates, BigQuery's smart tuning usually handles this efficiently. You’d save more on the repetitive JOINs than you'd spend on the incremental refreshes.

0
EM
Answered on 17-09-2023

Check your "Long-term Storage" pricing too. Data not edited for 90 days drops in price by 50% automatically, which helps if you have historical logs.

MI 18-09-2023

Emily is right. We saved a ton by moving our old log data to separate datasets that we rarely touch, letting the automatic discount kick in.

Share your thoughts

Your email address will not be published. Required fields are marked (*)

Professional Counselling Session

Still have questions?
Schedule a free counselling session

Our experts are ready to help you with any questions about courses, admissions, or career paths. Get personalized guidance from industry professionals.

Request a Call Back

Search Online

We Accept

We Accept

Follow Us

"PMI®", "PMBOK®", "PMP®", "CAPM®" and "PMI-ACP®" are registered marks of the Project Management Institute, Inc. | "CSM", "CST" are Registered Trade Marks of The Scrum Alliance, USA. | COBIT® is a trademark of ISACA® registered in the United States and other countries.

Book Free Session