Comparison · Ingestion and transformation

ETL or ELT:
where to transform your data?

In an ETL, data is transformed before it enters the warehouse. In an ELT, it enters raw and is transformed in place, in SQL. The difference looks slight. It changes how you correct a mistake.

IngestionTransformationdbt

IN SHORT

The short answer.

ELT for a platform built today on a cloud warehouse. You keep the raw data, and all the logic lives in one place, in versioned SQL.

ETL keeps its place when a piece of data must not enter the warehouse as it is: personal data to mask, files to reshape, a target system with limited capacity.

In practice, most platforms do ELT with a little “T” before loading.

CRITERION BY CRITERION

What really changes.

CriterionETLELT
OrderExtract, transform, then load.Extract, load, then transform.
Where the transformation happensA separate server or tool, before the warehouse.The warehouse itself, with its compute power.
Raw dataOften lost: only the result is loaded.Kept in the warehouse, alongside the transformed tables.
Correcting a ruleYou have to re-extract the data from the source, if it has kept it.You fix the SQL and recalculate the history from the raw data.
LanguageOften a graphical tool or a vendor-specific language.SQL, versioned and tested, most often with dbt.
Sensitive dataMasked or filtered before entering the warehouse.Loaded as it is: protection relies on access rights.
CostA tool and a transformation server to maintain.More storage, and warehouse compute to monitor.

IN PRACTICE

When to choose one or the other.

Choose ELT if…

  • You use a cloud warehouse such as BigQuery, Redshift or Databricks.
  • Your business rules change often and the history has to follow.
  • You want analysts to be able to read and reread the transformations.
  • You want a single chain of tests and documentation.

Keep some ETL if…

  • Personal data has to be pseudonymised before any storage.
  • Your sources are heterogeneous files to be checked before accepting them.
  • Your target database lacks the power to transform in place.
  • Your current pipelines work and nobody complains about the figures.

OUR VIEW

Keep the raw data: you will get it wrong.

A business rule always ends up changing. A sales channel is reclassified, a discount was not deducted, a market changes currency. With ELT, you fix a query and recalculate the whole history. With an ETL that only loaded the result, you have to go back to the source, if it still has the data.

That is why we load raw data into the warehouse, then transform it with dbt: each transformation is an SQL file that is reviewed, tested and documented. It is also the idea behind the migrations from Talend or SAS to open-source dbt that we offer in the public sector.

ELT does not excuse a lack of rigour. Loading everything, with no layers or tests, produces a warehouse full of raw tables that nobody understands. And a step before loading is sometimes still the right answer: for a perfume maison, the distributors’ Excel files go through quality checks before being accepted.

FREQUENTLY ASKED QUESTIONS

What we are often asked.

Is ETL outdated?

No. It was designed at a time when storage and compute were expensive in the warehouse: you only loaded what was necessary. That constraint has almost disappeared in the cloud, but the reasons to filter or mask before loading still exist.

We have an ETL in place. Should we migrate everything?

Not in one go. It is better to migrate pipeline by pipeline, starting with those that change most often or break most, and to let the old and the new run in parallel while you compare the figures.

What about reverse ETL?

It is the opposite path: sending data from the warehouse back to business tools, for example a customer segment to the CRM. See the definition of reverse ETL.

WHAT COMES NEXT, WE BUILD TOGETHER

Your next project
starts with a conversation.

An idea, a pain point, a project to kick off? Let’s talk about what would make a difference for your teams.

Let’s talk about your project