Bookmarks

ELT — ELT: extract, load, transform

A data integration pattern: data is first extracted from sources and loaded into a store as is, and the transformation is done by the store itself.

Also: extract-load-transform

checked 9 Nov

All terms

An accounting system knows a customer by contract number, the CRM by email address, the website by session identifier. An ELT pipeline pulls data out of such systems and puts it into the store as is, without processing, and leaves it to the store itself to bring the data to a common form — after loading.

How the pipeline runs

StageWhat happens
Extractdata is copied from source systems: transactional databases, a CRM, exports, APIs of external services
Loadraw data is stored as is in a data warehouse or data lake — usually in a separate raw zone
Transformdata is cleaned and shaped inside the store, using its own tools — most often SQL

The raw data stays untouched: if a transformation rule changes, the pipeline recomputes the finished tables from the same source. No separate transformation engine is needed — the store processes the data itself, and scaling the store scales the whole pipeline with it.

How it differs from ETL

The approach differs from classic ETL only in the order of steps: in ETL data is transformed before loading, in ELT after it. In return, raw data is available for analysis straight after loading, and transformation logic can be changed and re-checked against data that is already loaded.

  • ELT is the choice when the target system is a cloud store such as Snowflake, BigQuery or Redshift with elastic compute
  • when raw data needs to be kept — for exploration, quality control or a future schema change
  • when the transformations suit what the store itself offers: SQL, partitioning, columnar formats such as Parquet

Classic ETL remains the choice when the target system is weak and heavy transformations need to be taken off it, when the rules are complex and a separate integration engine is needed, or when regulation requires data to be checked and approved before it reaches the store.

dbt: transformations as code

The “T” in ELT is most often handled by dbt, a framework where each transformation model is written in SQL, while the build, dependencies and tests are described in the project’s files. Models form layers: from staging, which tidies up the raw tables, to marts — the tables served to reporting. Transformations become code: versions in git, review, tests and rebuilds from raw data.

sqlA dbt model — a plain select over raw data
select    o.id                 as order_id,    o.client_id,    o.amount / 100       as amount,    o.created_at::date   as ordered_atfrom raw.orders as owhere o.status <> 'test'

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • ETLETL: extract, transform, load

    In ETL data is transformed before loading, in ELT after it: raw data reaches the store first.

  • DWHdata warehouse

    The DWH is the store itself, the place the data arrives in; in ELT it also does the transformations with its own means.

  • CDCchange data capture

    CDC continuously captures changes in the source and often serves as the way data is extracted inside an ELT pipeline.