Currently Available: Need a skilled Software Developer for your next project?
Categories
SEO, GEO and AEO

Reducing BigQuery Scans for Search Console Exports

When you explore Search Console performance data in BigQuery, you can easily scan far more data than your question needs if your query reads every date and every column. BigQuery measures the data a query reads as bytes processed. On on-demand pricing, that number helps set your processing charge. Even if you use capacity pricing, where Google bills differently, you still make your queries more efficient when you skip data you do not need. Search Console exports the data to BigQuery for free, so the costs covered here come from running queries on that data. You can read more about how billing works in Google's BigQuery pricing and Search Console export guidance.

To shrink a scan, filter by the export’s date column, data_date, and select only the columns you need. BigQuery divides a partitioned table into smaller segments, or partitions, grouped by a value such as a date. When you filter data_date with a condition BigQuery can evaluate ahead of time, BigQuery skips the date partitions outside that range. BigQuery calls this partition pruning.

Filter to the dates and fields you need

Search Console’s performance tables partition rows by data_date. When you put a filter directly on data_date, BigQuery ignores partitions outside the dates you ask for. When you list only the columns you need instead of using SELECT *, BigQuery skips the unused columns as well. Google’s partitioned-table guidance shows which date filters allow partition pruning, and its query optimization guidance recommends selecting only the columns your query uses.

A broad exploratory query often starts like this:

SELECT *
FROM <code>project_id.dataset_id.searchdata_site_impression;

If you only need a specific date range and a few fields, narrow both the dates and the column list:

-- Hypothetical example. Replace the table path, dates, and fields as needed.
SELECT
  data_date,
  query,
  clicks
FROM <code>project_id.dataset_id.searchdata_site_impression
WHERE data_date BETWEEN DATE '2026-11-01' AND DATE '2026-11-14';

Because Search Console lets you choose your own dataset name, replace the placeholder project and dataset with yours. When you know the date range, write the fixed dates directly into the data_date filter. BigQuery cannot always prune partitions if you use certain dynamic date expressions. Also keep in mind that Search Console stores data_date in Pacific Time, as noted in the Search Console table reference, so pick your filter dates in Pacific Time.

Do not rely on LIMIT to control scan size. A LIMIT clause caps the number of rows BigQuery returns, but it does not reliably cut how much data BigQuery reads. Search Central specifically warns that adding LIMIT to an exploratory SELECT * query does not reduce the scan. To reduce what BigQuery reads, use a date filter and name the columns you want.

Compare estimates before running

Before you run a query, check the estimated bytes processed in BigQuery’s query editor. You can also run a dry run, which checks that your query is valid and estimates its processing without running it or using query slots. BigQuery’s query instructions show how to check the editor estimate and perform a dry run.

To see how much each change saves, write down the byte estimate for your starting query. Add a data_date filter and check the estimate again. Then replace SELECT * with only the columns you need, and check the estimate one more time. Keep the table and question the same across all three checks so BigQuery is estimating the same work. Your actual savings will vary based on the table, date range, and columns, so do not expect a fixed percentage drop.

Treat the estimate as a planning tool rather than a final bill. BigQuery can bill fewer bytes than it estimates before a run, and your pricing model determines how Google charges you. BigQuery’s cost-control guidance covers estimate behavior and dry runs in detail. On on-demand pricing, you can also set a maximum bytes-billed limit to cap what BigQuery can bill for a query. If a query’s estimate exceeds that cap, BigQuery rejects it before it runs. For queries that stay under the cap, date filters and a narrow column list still reduce how much data BigQuery reads.

What I'm building

Delegate tasks. Get software.

Give Vroni a GitHub issue, bug report, spec, or rough idea. It reads the repo, plans the change, writes code, runs checks, and works toward a review-ready pull request.

Take a look at vroni.com

Email updates

Usually a new article and a few links I found interesting.

No spam. Unsubscribe with one click.

Leave a Reply

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