Product companies generate data in many places: the application database, a payments provider, a CRM, an event tracker, a support desk, advertising platforms. Early on, someone exports a CSV and builds a chart. A year later there are forty dashboards, three definitions of “active user”, and a monthly meeting where the first fifteen minutes go to arguing about whose number is right.
A modern data stack fixes this not with a single tool but with a set of practices: load raw data into a warehouse, transform it with version-controlled SQL, define metrics once, and expose them to dashboards and applications. This article covers the building blocks and the trade-offs that matter for a company with a small team and growing questions.
From ETL to ELT
Traditional ETL (extract, transform, load) transformed data on a separate server before loading it into a database. Storage and compute were scarce, so you loaded only what you needed, in its final shape. Cloud warehouses reversed the economics: storage is cheap and compute scales on demand, so the common pattern is now ELT.
- Extract data from sources: database replicas, SaaS APIs, event streams, files.
- Load it as-is into a raw schema in the warehouse.
- Transform it inside the warehouse using SQL, producing clean, modelled tables.
The benefits are practical. Raw data is preserved, so you can reprocess when business logic changes. Transformations are written in SQL, which analysts and engineers both read. And the warehouse engine does the heavy lifting.
Ingestion options
- Managed connectors such as Fivetran, Airbyte Cloud or Stitch handle schema changes, incremental syncs and API quirks for hundreds of sources. They cost money per monthly active row but save weeks of engineering.
- Open-source self-hosting with Airbyte or Meltano reduces licence costs and increases operational work.
- Change data capture (CDC) from the production database gives near-real-time replication without hammering the primary. Log-based CDC is preferred over repeated full table scans.
- Event tracking through tools like Segment, RudderStack, Snowplow or a custom collector, delivering behavioural events such as page views, sign-ups and purchases.
- Custom jobs for sources with no connector, written in Python and orchestrated with a scheduler.
A rule of thumb: buy connectors for commodity sources, write custom code only where the source is unique to you.
Choosing a warehouse
The two most common choices for product companies are Google BigQuery and Snowflake. Others, such as Amazon Redshift, Databricks SQL, ClickHouse and DuckDB or MotherDuck for smaller workloads, have strong cases too.
| Aspect | BigQuery | Snowflake |
|---|---|---|
| Pricing model | On-demand per terabyte scanned, or reserved slots | Credits per second of virtual warehouse compute, plus storage |
| Operations | Serverless; little to tune | Choose warehouse sizes, auto-suspend settings |
| Cloud | Google Cloud only | AWS, Azure and Google Cloud |
| Strengths | Simple start, tight integration with GA4 and Google Cloud | Concurrency isolation by warehouse, data sharing, broad ecosystem |
| Cost risk | A careless query scanning a large unpartitioned table | A warehouse left running or oversized |
| Semi-structured data | Native JSON and nested records | VARIANT type with flexible querying |
Neither is universally better. If your stack already lives on Google Cloud and your team is small, BigQuery’s serverless model keeps overhead low. If you need workload isolation, cross-cloud flexibility or data sharing with partners, Snowflake is attractive. For data volumes under a few hundred gigabytes, even a well-tuned PostgreSQL replica or DuckDB can serve analytics well, so avoid buying scale you do not need.
Cost control from day one
- Partition and cluster large tables by date and common filters.
- Select only needed columns; avoid
SELECT *on wide tables. - Set budgets and alerts, and per-user or per-project quotas.
- Use auto-suspend on Snowflake warehouses, with sensible minimums (60 seconds is common).
- Prefer incremental models for large fact tables rather than rebuilding them nightly.

dbt: transformations as software
dbt (data build tool) lets you write each transformation as a SQL SELECT statement in a file; dbt handles materialisation (view, table, incremental), dependency ordering and documentation. Its real value is that it brings software engineering practices to analytics.
A sensible project structure
The widely used layering convention has three tiers:
- Staging models (
stg_): one per source table. Rename columns consistently, cast types, standardise timestamps to UTC, and remove obviously invalid rows. No joins. - Intermediate models (
int_): reusable business logic, such as sessionising events or joining orders to payments. - Marts: wide, business-friendly tables for consumption, organised by domain (finance, growth, product). Typically dimensional: facts like
fct_ordersand dimensions likedim_customers.
A dashboard is only as trustworthy as the definition behind its numbers, and a definition that exists in five places exists in none.
Tests and documentation
dbt ships with generic tests: unique, not_null, accepted_values and relationships. Apply them on every primary key and on critical foreign keys. Add custom tests for business rules, such as “refunds never exceed the original payment” or “no negative inventory”. Packages like dbt-expectations and elementary add statistical checks and anomaly detection.
Use the description fields in YAML to document models and columns. dbt generates a browsable documentation site with lineage graphs showing how each mart derives from raw sources, which is invaluable when you need to trace a suspicious number.
Workflow practices
- Keep the project in Git with pull requests and code review.
- Run
dbt buildin CI against a development schema for every pull request, using state-based selection (state:modified+) so you only test what changed. - Use separate development, staging and production targets. Each developer gets an isolated schema.
- Handle slowly changing dimensions with snapshots when you need history, for example plan changes for a customer.
- Version your model contracts for models that other teams depend on, so schema changes are deliberate.
Orchestration and freshness
Something has to run the pipeline in order. Options include dbt Cloud’s scheduler, Airflow, Dagster, Prefect, or simple cron with GitHub Actions for small setups. Whichever you choose, define the dependencies clearly: ingestion completes, then dbt runs, then downstream exports and dashboards refresh.
Agree on freshness service levels. Most business reporting is fine with data that is 1 to 6 hours old; finance close may require daily; operational dashboards, such as support queue monitoring, might need minutes. Streaming architecture is expensive and complex, so use it only where the use case demands it. dbt’s source freshness checks can alert when upstream loads stall.
Monitoring matters as much as scheduling. Track pipeline duration, row counts per load, test failures and warehouse cost. When a dashboard looks wrong, the first question should be answerable from monitoring: did the load run?
The metrics layer
Even with clean marts, metric logic tends to be reimplemented in each BI tool: one dashboard computes monthly recurring revenue including trials, another excludes them. A metrics layer (also called a semantic layer) defines metrics once, in code, and serves them to every consumer.
What goes into a metric definition
- The measure, for example sum of
amountonfct_subscriptions. - The filters and business rules, such as only paid, non-refunded invoices.
- The time grain and the date dimension to use.
- Allowed dimensions for slicing: country, plan, acquisition channel.
- An owner and a plain-language description.
dbt’s Semantic Layer (powered by MetricFlow), Cube, LookML in Looker and similar tools implement this idea. The benefits: consistent numbers across tools, safer self-service because analysts compose approved metrics rather than inventing joins, and an interface for programmatic access, including embedded analytics inside your product.
Start small. Define ten metrics that executives and teams actually discuss: new accounts, activation rate, weekly active users, revenue, gross margin, churn, customer acquisition cost. Write down the definitions in a shared glossary, resolve disagreements in the open, and then encode the result.
Dashboards people trust
BI tools such as Looker, Metabase, Superset, Power BI, Tableau and Lightdash differ in cost and complexity, but good dashboard design is tool-independent.
- Start from decisions. Each dashboard should answer a defined question for a defined audience. If nobody can name the decision it informs, skip it.
- Show definitions and freshness. A footer with “Last updated 06:10 UTC; revenue excludes refunds” prevents many support messages.
- Limit the number of charts. Six to ten well-chosen visuals beat forty.
- Provide context. Compare to the previous period or target, and annotate known events such as a pricing change or an outage.
- Review regularly. Archive dashboards unused for ninety days.
For product teams, combine funnel analysis (sign-up to activation to retention) with cohort retention tables and a small set of north-star metrics. For finance, reconcile warehouse totals against the accounting system monthly. Reconciliation is the single best way to build credibility for the data function.
Governance, privacy and security
Warehouses often contain personal and financial data. Apply the same discipline as for production systems:
- Role-based access with least privilege. Analysts see what they need; raw PII sits in restricted schemas.
- Column-level masking or hashing for emails, phone numbers and identifiers where full values are unnecessary.
- Retention and deletion. Under privacy laws such as GDPR, you must be able to honour deletion requests across the warehouse, including derived tables. Design for this with a user ID mapping you can purge.
- Audit access to sensitive datasets through the warehouse’s query history.
- Environment hygiene. Do not allow ad hoc exports of full customer tables to personal laptops.
A practical rollout plan
For a team starting from spreadsheets and direct database queries, a pragmatic sequence over roughly three months looks like this:
- Weeks 1 to 2: Pick the warehouse, set up the project with access controls and budget alerts, and connect the two or three most valuable sources.
- Weeks 3 to 5: Build staging models and the first mart, for example orders and customers. Add tests. Reconcile totals with finance.
- Weeks 6 to 8: Define the core metrics, publish a glossary and deliver the first executive dashboard.
- Weeks 9 to 12: Add product events, set up CI, freshness alerts and cost monitoring, and train a few self-service users.
Resist the urge to model everything. Value comes from a small number of reliable, widely used tables.
Key takeaways
- ELT keeps raw data in the warehouse and moves transformation into version-controlled SQL, making logic reviewable and reprocessing cheap.
- Buy connectors for common sources; pick BigQuery or Snowflake based on your cloud, concurrency needs and cost model, and set cost guardrails early.
- Use dbt with staging, intermediate and mart layers, tests on keys and business rules, CI and generated documentation.
- Define metrics once in a semantic layer and a shared glossary so that every dashboard and application reports the same numbers.
- Match freshness to the decision; avoid streaming complexity unless the use case truly needs it.
- Protect personal data with role-based access, masking and deletion workflows, and reconcile key figures with finance regularly to keep trust high.

