Lesson · 6 pages · about 5 min
ETL vs ELT
Clean the data before storing it (ETL), or store it raw and clean it inside the warehouse (ELT). Measured over two weeks: what each one can redo when a bug is found.
- What it is
- Two orders of the same three steps. ETL: extract, transform, load, so data is cleaned before it is stored. ELT: extract, load, transform, so the raw data is stored first and cleaned inside the warehouse.
- What it is for
- Where the cleaning happens decides what you can redo. With ELT the raw data is kept, so a bug fix or a new question can be answered from history.
- Use it when
- ELT is the usual default now that warehouses are cheap and fast. Use ETL when data must be masked or cut down before it lands, or the target cannot do the work.
Words you’ll learn
- Data pipeline
- ETL
- Database
- Row
- Backfill
- Idempotent
- Retention
- ELT
- SQL
- Request