Extract data from sources, transform it, and load it where it can be analysed.
An ETL pipeline moves data from where it is made to where it can be analysed. ETL stands for Extract, Transform, Load.
Business data starts out messy and scattered. Orders are in one database, customers in another, payments come as files from a partner, and clicks arrive from an app. Each source uses its own formats, spellings and rules. A report that needs all of them cannot be built until the data is gathered, cleaned and put in one place. That is the job of an ETL pipeline.
The usual order is Extract, then Transform, then Load. Transform means things like removing duplicates, rejecting broken rows, making dates look the same, turning euros into dollars and joining tables. The transform usually runs on a separate processing server or cluster, so the warehouse receives only finished, tidy rows.
Modern cloud warehouses are fast and cheap at storing and processing data. So many teams switched the last two steps and use ELT: load the raw data first, then transform it inside the warehouse with SQL. The raw copy stays, so a transform can be changed and run again.
| Step | Typical work | What can go wrong |
|---|---|---|
| Extract | Full copy, or only what changed (incremental, or Change Data Capture) | Load on the source, missed changes, API limits, schema changes |
| Transform | Dedupe, validate, standardise formats, convert units, join, aggregate | Wrong rules, silent data loss, slow jobs |
| Load | Append, upsert or replace into warehouse tables | Duplicate loads, half-finished loads, locked tables |
| ETL | ELT | |
|---|---|---|
| Where the transform runs | On a separate processing server or cluster | Inside the warehouse or lake |
| What is loaded | Only finished rows | Raw rows first, then derived tables |
| Raw data kept? | Usually not | Yes, so you can re-run with new rules |
| Best when | Data must be cleaned or masked before it may be stored; limited warehouse power | A strong cloud warehouse and a wish for flexibility |
| Skills | Pipeline code or ETL tools | SQL and tools such as dbt |
| Style | How it works | Good for |
|---|---|---|
| Scheduled batch | Run at set times, for example every night | Reports that can be a day old |
| Micro-batch | Run every few minutes on small chunks | Fresher data without a full stream |
| Incremental | Load only the new or changed rows since the last run | Large tables |
| Streaming | Process each change as it arrives (often fed by CDC) | Dashboards that must be seconds old |
A separate server cleans the rows. Only the finished rows reach the warehouse.
The rows and the example rate (1.1) are made up. The speeds (40 and 200 million rows per hour) are illustrative, only to show that one transform server can run out of time while a scaled-out warehouse engine often does not. Real speeds depend on your tools and data.
| Term | Meaning in easy words |
|---|---|
| ETL | Extract, Transform, Load: clean the data before loading it |
| ELT | Extract, Load, Transform: load raw data first, transform inside the destination |
| Source system | Where the data is created, such as an app database |
| Data warehouse | A database designed for analysis and reports |
| Staging area | A temporary place where extracted data waits before it is transformed |
| Incremental load | Loading only the rows that are new or changed since the last run |
| Idempotent load | A load that gives the same result if it is run twice |
| Orchestrator | A tool (such as Airflow) that schedules and monitors pipeline tasks |
| Data quality check | A test on the data, for example row counts, nulls or allowed values |
| Quarantine table | A place for rejected rows, kept with the reason for the rejection |
| Backfill | Re-running a pipeline over past days, for example after fixing a rule |
| Choice | We gain | We lose |
|---|---|---|
| ETL (clean before load) | A tidy warehouse, sensitive fields can be removed early | The raw data is gone, and the transform server must keep up |
| ELT (clean after load) | Raw data kept, SQL-based, scales with the warehouse | The warehouse holds messy data, so access and cost need care |
| Full extract | Simple and complete | Slow and heavy as data grows |
| Incremental extract | Fast and light | Misses deletes and late changes unless handled with care |
| Nightly batch | Simple and cheap | Data is up to a day old |
| Streaming | Data is seconds old | More complex to build and run |