Data Warehouse

A data warehouse is a database built for analysis: it holds copies of the data from your shop, ad platforms, CRM and analytics in one place, so one SQL query can answer questions across all of them. Google BigQuery and Snowflake are common cloud data warehouses.

Daniel Busch
Written by Daniel Busch · Chief of Staff · Updated

In short

  • Is: a database for analysis. Cloud warehouses such as BigQuery store tables column by column, so summing millions of orders reads only the columns it needs
  • Not: the database your shop runs on, which writes one order at a time; the warehouse receives copies of shop, ad, CRM and analytics data
  • Costs: storage plus the data your queries scan or the compute they use. BigQuery lists $6.25 per TiB scanned on demand, the first TiB each month free
  • Fills by ETL or ELT, with ELT loading raw data first and modeling it with SQL inside. GA4 exports its raw events to BigQuery, Google Ads data transfers at no charge
  • adtribute adds views of your data to your BigQuery dataset and reads channels, events and lookup values from your own BigQuery tables

What a data warehouse is

A data warehouse is a database for analysis. Your shop, ad platforms, CRM and analytics tool each keep their own data; the warehouse holds copies of all of it in tables, so one SQL query can answer “net revenue, ad spend and new customers by channel and month for the last three years”.

Two design choices make that fast. Google’s BigQuery stores data in a columnar format optimized for analytical queries, and its compute and storage layers operate independently of each other (Google Cloud). A query that sums one column over 50 million rows reads that column, not every field of every row.

A shop’s own database is built the other way round: it reads and writes one order at a time, all day. The warehouse doesn’t replace it; it receives copies.

Data gets in by one of two routes. In ETL, data is extracted from the source, transformed and then loaded; in ELT, it is loaded raw and converted inside the warehouse (Google Cloud). Loading raw has one big advantage for marketing data: when a definition changes, such as what counts as a new customer, you rebuild the table from the raw data instead of importing everything again.

Two neighbours of the term: a data lake keeps raw files of any format in cheap storage and gives them structure only when they’re read, and a lakehouse puts warehouse-style SQL on top of lake storage.

Why marketing data ends up in a warehouse

BigQuery or a data warehouse comes up in more than one in thirty of the issues customers raise with us, and some customers simply write “DWH”. The requests repeat: put our adtribute data into our BigQuery, read this table from it, give our analysts access. The reasons behind them:

  • Joins no single tool makes. Spend per campaign sits in Meta and Google Ads, product costs in the ERP, deal values in the CRM, survey answers in a form tool. “Our costs live in the ERP. Can you ingest them?” is a question we hear in calls. In a warehouse, the join is one query.
  • Raw data. GA4 can export all its raw events to BigQuery, with a daily limit of one million events for standard properties (Google).
  • Cheap transfers from Google. The BigQuery Data Transfer Service loads Google Ads data at no charge; the loaded data is billed at BigQuery’s storage prices (Google Cloud).
  • Your own reports. Your BI tools read from the warehouse, and so can an analyst’s SQL or an AI assistant. How adtribute feeds them: the BI dashboard entry’s section on how adtribute feeds your dashboards.

What a warehouse doesn’t do is decide what a number means. Two analysts with the same tables can produce two different ROAS figures. Definitions belong in one place on top of the warehouse, a semantic layer.

What a warehouse costs: BigQuery and Snowflake

Cloud warehouses bill storage and compute separately.

  • BigQuery charges compute on demand, per TiB a query scans, or as capacity, in slot-hours in three editions: Standard, Enterprise and Enterprise Plus. Google lists on-demand queries at $6.25 per TiB, the first TiB each month free, and the first 10 GiB of storage each month free; prices depend on the location you pick (Google Cloud). The BigQuery sandbox needs no billing account, but its tables, views and partitions expire after 60 days (Google Cloud).
  • Snowflake bills compute in credits. A “warehouse” in Snowflake is not where the data sits but a cluster of compute resources (Snowflake), billed per second with a 60-second minimum each time it starts (Snowflake). Storage costs a flat rate per TB and month (Snowflake).

A worked example: a D2C brand with 60,000 orders a year loads two years of orders and line items, daily spend per ad from Meta and Google Ads, CRM contacts and the GA4 export into BigQuery, about 80 GiB. Its analyst and two dashboards scan about 3 TiB a month.

BigQuery, one monthUsedFreeBilledCost at list price
Storage80 GiB10 GiB70 GiBunder $2
Queries on demand3 TiB1 TiB2 TiB$12.50

About $14 a month. If one dashboard instead rescans the full 50 GiB events table on each of 20 refreshes a day, it reads about 1 TiB a day, 30 TiB a month, and the query bill rises to about $180. Partitioned tables cut that, because a query that filters on the partitioning column reads only the partitions it needs (Google Cloud). At this size, the bill is small; the hours someone spends building, checking and explaining the tables are not.

How adtribute works with BigQuery

  • Your adtribute data in your BigQuery. Under Activation, a BigQuery destination adds views of your data to a dataset in your Google Cloud project, for example for your own BI tools. You grant the pipeline service account of adtribute’s marketing attribution and analytics platform the role BigQuery Data Editor and create the dataset in the EU multi-region without a default table expiration (docs: Send adtribute data to BigQuery), which rules out a sandbox project until billing is attached. Each action exports one table reference: attribution data by conversion or click date, conversion journeys, aggregated conversion, touchpoint and channel data, event data or lookup sources. A view holds no copy: each query reads the current data, so the views update with your other data and refreshing one changes nothing (docs: When your data updates).
  • Costs from BigQuery. A BigQuery Channel connection turns spend in one of your tables, such as influencer or affiliate costs, into a channel in your dashboards, with campaigns, ads, impressions and clicks if your table has them (docs: Integrate Channels via BigQuery).
  • Events from BigQuery. A BigQuery Event connection imports events such as offline conversions, each with an ID, a timestamp and an email address, and syncs every 15 minutes (docs: Integrate BigQuery Event Data).
  • Values from BigQuery. A BigQuery Lookup attribute joins a column of your table to your data, such as precalculated order metrics or post-purchase survey answers matched on the order ID (docs: Metrics and dimensions in adtribute). For imports, adtribute needs only the role BigQuery Data Viewer.

Our view: a warehouse pays off once someone owns the SQL

Our view: for a D2C brand, the warehouse is rarely the expensive part. The expensive part is the person who models the raw tables, keeps every definition consistent and answers questions with them.

  • Before that person exists, your shop, your ad platforms and an attribution tool answer most daily questions. A warehouse without an owner fills up with tables nobody trusts.
  • Build one when your questions need data from systems no tool joins for you, such as ad spend against ERP margins or CRM deal values, and someone in-house writes and maintains the SQL.
  • Load raw, define once. Keep one definition per metric and give your BI tool and your AI assistants the same one.

PERGOLUX works this way: attribution data flows into its BigQuery warehouse, where its internal data team combines it with other business data (PERGOLUX case study).

FAQ about Data Warehouse

Is BigQuery a database?

Yes, a database for analysis, and a customer asked us exactly this in a call this year. Google describes BigQuery as a fully managed data platform that combines a cloud data warehouse with analytics tools and stores data in a columnar format optimized for analytical queries. It isn’t the database your shop runs on: the shop writes single orders all day, and BigQuery receives copies of them for analysis.

What is the difference between a data warehouse, a database and a data lake?

A database usually runs an application and handles one record at a time, such as an order. A data warehouse collects copies from many systems in structured tables for analysis across them. A data lake keeps raw files of any format in cheap storage and structures them only when they’re read; a lakehouse adds warehouse-style SQL on top.

What does BigQuery cost a D2C brand?

Usually little. In the worked example above, a brand with 60,000 orders a year stores about 80 GiB and scans 3 TiB a month: about $14 a month at Google’s list prices. Dashboards that rescan large tables on every refresh multiply that, and the people who build and maintain the tables cost far more than the warehouse.

Can we get our adtribute data into our own BigQuery?

Yes. A BigQuery destination under Activation adds views of your attribution, conversion, journey, touchpoint and channel data to a dataset in your Google Cloud project in the EU multi-region. The views hold no copy and always show the current data. For a table outside the standard list, such as a cohort table, our support can add it to your destination.

Do we need a data warehouse to use adtribute?

No. adtribute connects your shop, ad platforms, CRM and form tools directly. BigQuery is an option on top: to export your adtribute data, or to bring in costs, events and values that already live in your own tables.