r/dataengineering • u/arimbr • 6d ago
Blog BigQuery Query Optimization: Myths vs. What Actually Saves Money
Interesting framework on how to think about optimizing SQL queries in BigQuery with partition pruning, caching, materialized views, data modeling... Here is the article: https://www.alvin.ai/blog/bigquery-query-optimization
Good to see that data modeling still plays a role, and not just rewriting SQL at query time. I feel like having most SQL code AI-generated today, by coding agents or during self-service analytics, makes the SQL optimization problem more complex than good old ETL codebases that didn't change that often.
34
Upvotes
8
u/jack-in-the-sack Data Engineer 4d ago
These principles apply with any engine... not just BQ
4
u/Budget-Minimum6040 3d ago
Incremental load is missing here.
And those mentioned methods appy to any OLAP database that supports partitions.
3
u/Old_Tourist_3774 2d ago
That image is very confusing along with your post title.