ETL vs ELT: The Mental Model
A pipeline moves data from where it is created to where people analyze it, reshaping it on the way. Modern small teams load raw data first (ELT) and transform with versioned SQL. Five properties make a pipeline defensible: incremental, idempotent, observable, schema-aware, documented grain.
Extract, Load, Transform
A pipeline has three verbs:
- Extract: pull data from a source (a chatbot platform, a form tool, a survey)
- Load: write it into the destination (a warehouse such as BigQuery)
- Transform: clean, join and model it into tables people can query
ETL transforms before loading; logic lives inside the pipeline tool and raw data is often discarded.
ELT loads raw data first and transforms inside the warehouse with SQL. Storage is cheap, raw data is preserved, and the transformation logic is SQL in version control.
Why small teams choose ELT: when you find a bug in a transformation, you fix the SQL and rebuild from raw. With ETL you may have already lost the data you needed.
Connected play. Raw data you can always return to keeps your whole position connected: a bug becomes a rebuild, not a loss.
How the playbook frames ETL (Motion 02)
The Agency Fund's playbook calls "build and track metrics through robust ETL pipelines" its second repeatable motion. Its framing, which you can echo:
- Extract: chat logs, product telemetry, survey tools, third-party APIs, even spreadsheets
- Transform: clean, standardize and reshape: timestamp alignment, anonymization, session stitching, and derived metrics such as time-on-task or trust indicators
- Load: a centralized warehouse or analytics dashboard that teams can access
Why it matters for AI products: generative models emit high volumes of messy, unstructured data (prompts, outputs, clicks, feedback). Their example is an adolescent mental-health product that must integrate model outputs (Level 1), engagement logs (Level 2), behavioral indicators (Level 3) and outcome data (Level 4) into consistent indicators per level. Note that the playbook uses the older ETL label for the whole idea; in practice the modern stack does the transform step after loading (ELT).
Five properties you can defend in an interview
- 1.Incremental: move only new or changed rows, not everything each run
- 2.Idempotent: running twice gives the same result (no duplicates after a retry)
- 3.Observable: you find out when it fails or data is stale (freshness checks, alerts)
- 4.Schema-aware: a renamed source column should not silently break reports
- 5.Documented grain: every table states what one row represents
Interview move: when asked to design a pipeline, say the grain first ("one row per message"), then the load strategy (incremental on a timestamp or ID, with a dedupe key), then the checks. That order signals you understand the real failure modes.
Grain is where most bugs live
Grain = what one row represents. Most reporting errors are grain mistakes:
- Joining users (one row each) to messages (many per user) and then counting users → inflated counts (a fan-out)
- Counting messages when you meant conversations
- Mixing daily and monthly rows in one table
Sanity check habit: after any join, ask "did my row count change the way I expect?" and compare to a known total.
Select any text in the lesson to ask a question. Press Esc to close.