Q&A-25When would you keep transformation before the load (classic ETL) for a reporting pipeline instead of loading raw and transforming in the warehouse (ELT), and what does that choice change about the pipeline's design, its reprocessing story, and the freshness the report can promise?
Answer
Start by naming the two things that decide it: where the raw data is allowed to land, and whether the source can be replayed. Classic ETL wins when either the raw data must not exist in the warehouse (PII, residency, contractual) or the source volume is so much larger than the useful slice that retaining raw is the dominant cost. ELT wins by default when raw retention is cheap and the warehouse is the cheapest place to transform, because it keeps the raw layer as the replay log.
Assumptions I'd state: batch reporting, source is a transactional DB or event stream, warehouse is BigQuery/Snowflake-class, and the report has a daily or hourly SLA.
Design changes. ETL adds a transform tier between source and warehouse: Spark/Flink job, source-side SQL, or a stream processor. That tier owns state, retries, and schema handling; the warehouse load becomes a dumb, fast writer (COPY/INSERT). Orchestration splits: Airflow now has a pre-load task with its own sensors and retries, and lineage must cover it. OpenLineage events from the transform job, not just the dbt models downstream. ELT collapses that: one load, then dbt incremental models, Snowflake tasks, or BigQuery materialized views transform in place.
Reprocessing. This is the real cost. ETL reprocessing requires the source to be replayable: Kafka retention, a CDC log, or source snapshots. If the source only keeps 7 days and you find a transform bug on day 30, you cannot rebuild the report without a full re-extract, and often you can't. ELT reprocessing is a re-run of the model over retained raw history. So a hybrid, transform before load but also land raw, is just ELT with extra steps and double storage.
Freshness. ETL can promise a lower floor because the loaded table is already report-ready: one publish step, no post-load transform window. But end-to-end freshness is bounded by the slowest stage, and the transform tier is a stage you own and must scale. ELT's freshness is bounded by load + transform; a dbt incremental model over 200 GB might add 10-20 minutes, while a BigQuery materialized view can be near-real-time within its staleness limit. The ETL promise is easier to state and harder to improve.
| dimension | ETL (transform before load) | ELT (load raw, transform in warehouse) |
|---|---|---|
| where transform runs | Spark/Flink/source SQL | dbt, Snowflake tasks, BigQuery MV |
| warehouse load | dumb writer, already clean | raw append, schema-on-read |
| reprocessing | needs source replay (Kafka/CDC/snapshot) | re-run model over retained raw |
| freshness floor | one publish step, no post-load window | load + transform window |
| cost shape | transform compute outside warehouse; less storage | warehouse compute + raw storage |
| lineage | must cover pre-load job | dbt/warehouse-native |
Arithmetic, illustrative: 40 TB/day raw clickstream, 0.5% useful = 200 GB/day. 90-day raw retention at ~$20/TB-month = 3,600 TB * $20 = $72k/month storage alone; transformed-only is 18 TB = $360/month. That gap is the whole argument for ETL, until you need to reprocess and the raw is gone.
Failure modes. Transform bug corrupts the loaded table and raw is gone → unrecoverable; detect with source-to-output control totals and keep a raw landing zone. Transform tier backpressure → source lag; alert on queue depth and job lag. Schema drift breaks the transform before load, so the warehouse never sees the new column; contract tests in the transform job. Cost moves outside the warehouse budget; tag jobs and track cost per pipeline.
Decision rule: default ELT; choose ETL when raw cannot land or raw retention cost exceeds the reprocessing risk you're accepting. If you choose ETL, keep a raw landing zone anyway unless regulation forbids it.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.