Bigquery Optimization

Posts about BigQuery

In this blog post we’re going to cover how to make your SQL queries blazing fast. So, BigQuery is an incredible tool for wrangling massive datasets and running SQL queries at scale. But let’s be honest—just because it can handle huge queries doesn’t mean you should throw inefficiency at it. The faster your queries run, … Read more

How to Refresh and Update Airflow DAGs on EC2

This past weekend I decided to spin up a quick Airflow deployment for some personal scripts I wanted executed on a schedule. I didn’t have scale in mind and I didn’t have robustness in mind. I had speed. I’ll review how I’m deploying my version-controlled DAG code to my EC2. I want to highlight, this … Read more

Check If a Partition Exists in BigQuery: Cheapest and Fastest Method

Efficiently managing partitioned tables in Google BigQuery is crucial for performance and cost optimization. A common task is determining partition existence in BigQuery within a table. Instead of scanning entire tables, which can be time-consuming and expensive, BigQuery offers a more efficient approach using the INFORMATION_SCHEMA.PARTITIONS view. Using INFORMATION_SCHEMA to Check Partition Existence BigQuery’s INFORMATION_SCHEMA … Read more

Dag Factory

What in the the world are Apache Airflow DAG Factories and why should you use them? Let’s go into what they are, why they’re used, and how they could make your life easier. We’ll also go into the nitty gritty of how to design and build one. Also, before I jump into this post, shout … Read more

Gitpython Clone

So, a loooong time ago I wrote this post on how to clone a Git repo in Python3. I used subprocess that first time around to run git commands. I was essentially trying to run git commands in python explicitly. But, there’s a better way to do this. It’s prettier, it’s easier to read. There’s … Read more

Extract Domain from URL in BigQuery Using NET.REG_DOMAIN

This post will show you how to pull a domain from a full website path in BigQuery. So let’s set the stage for a hypothetical. You own a URL shortener company. You want to partner with a website for whatever reason. You decide that you want to do analysis over the data you’ve streamed or … Read more

Exit mobile version