ETL vs ELT: the difference and when ETL still wins
Where the transform runs, what that changes for cost, speed of change and governance, and the cases where transforming before the load is still the right call.
ETL (extract, transform, load) transforms data before it reaches the warehouse; ELT (extract, load, transform) loads the raw data first and transforms it inside the warehouse with SQL. That is the whole difference in definition, but the change of order moves three things: who pays for the transform compute, how fast a team can change a business rule, and where raw data, including personal data, ends up stored. ELT became the default for analytics once cloud warehouses separated storage from compute and started billing compute by usage, which made it cheap to keep raw copies and rerun transforms at will. ETL did not disappear, though. It is still the better design when a column must never land in the warehouse, when the destination is too small to do heavy work, or when the transform is something SQL cannot express. Most real pipelines today are a mix: a light, mechanical scrub in flight, then the business modelling in the warehouse. This guide covers each trade-off and how to choose.
ETL vs ELT at a glance
| ETL | ELT | |
|---|---|---|
| Where the transform runs | A separate engine between source and destination | Inside the destination warehouse |
| What lands in the warehouse | Only the transformed, modelled output | Raw copies of the source, plus modelled tables built from them |
| Transform language | Whatever the ETL engine uses (a GUI, Python, Spark, SQL) | Usually SQL, often managed with dbt or a similar tool |
| Changing a business rule | Change the pipeline, then re-extract or replay history | Change the SQL model and rebuild it from the raw tables |
| Who pays for transform compute | The ETL server or cluster | The warehouse bill |
| Personal data | Can be removed or hashed before it is stored | Stored raw unless you scrub it during the load |
| Best fit | Strict pre-load privacy rules, small or operational destinations, non-SQL transforms | Analytics warehouses, fast-changing metrics, many consumers of the same data |
What is ELT, and why did it become the default?
ETL is the older pattern. It comes from on-premises warehouses where storage and compute were bought up front, sized for the peak and shared with every report. Loading raw data you might never use wasted expensive disk, and running heavy transforms on the warehouse slowed everybody’s queries. So teams cleaned, joined and aggregated in a dedicated ETL server and loaded only the finished tables.
Cloud warehouses changed the economics. Snowflake, BigQuery, Databricks and ClickHouse all separate storage from compute in their cloud offerings, so storing a raw copy costs little and transform compute can be scaled or switched off independently of query traffic. Snowflake, for example, bills virtual warehouse credits “per-second, with a 60-second (1-minute) minimum”. Once compute is elastic and billed by use, the warehouse is often the cheapest and most capable place to run the transform, and the raw copy becomes an asset: you can rebuild any downstream table from it.
That is ELT. The extract-and-load part became a commodity handled by tools such as Fivetran, Airbyte and Meltano (compared in Airbyte vs Fivetran vs Meltano), and the transform part became version-controlled SQL. The dbt Labs overview of ETL vs ELT describes the same shift, and it is worth remembering that dbt Labs sells the in-warehouse transform layer.
Where the transform runs, and what that changes
Cost
In ETL you pay for a transform engine: an ETL server, a Spark cluster or a managed service. Its cost is mostly fixed, and the warehouse stays small because it only stores finished tables.
In ELT the transform cost moves onto the warehouse bill. That is usually a good trade, but it has two failure modes that show up on the invoice:
- Rebuilding everything on every run. A model that rescans three years of raw events every 15 minutes costs more than the ETL job it replaced. The fix is incremental models that only process new rows; see incremental models in ClickHouse for the strategies and their pitfalls.
- Raw data you never use. Loading every column of every table “just in case” is cheap per gigabyte, but the load itself counts on usage-priced loaders, and every scan of a wide raw table costs on scan-priced warehouses. Pick the tables and columns you actually need.
ELT also adds a second, smaller cost: you store the data twice, once raw and once modelled. On columnar storage with compression this is rarely the deciding factor, but it is not zero.
Speed of change
This is the strongest argument for ELT. Business rules change constantly: a new refund status, a currency that must be converted, a definition of “active customer” that finance and product finally agree on. In ETL the rule lives in the pipeline, and applying it to history means re-extracting from the source or replaying archived files. In ELT the raw data is already in the warehouse, so you edit a SQL model and rebuild it.
Here is the core of an ELT flow in ClickHouse, tested on ClickHouse 25.8. The loader writes the source rows as they are:
CREATE DATABASE IF NOT EXISTS raw;
CREATE DATABASE IF NOT EXISTS staging;
CREATE TABLE raw.orders
(
id UInt64,
customer_id UInt64,
status String,
amount_cents Int64,
currency String,
created_at DateTime64(3, 'UTC'),
_loaded_at DateTime64(3, 'UTC') DEFAULT now64(3)
)
ENGINE = MergeTree
ORDER BY (created_at, id);
INSERT INTO raw.orders (id, customer_id, status, amount_cents, currency, created_at) VALUES
(1, 10, 'paid', 12000, 'EUR', '2026-11-01 09:00:00'),
(2, 11, 'refunded', 5000, 'EUR', '2026-11-01 10:30:00'),
(3, 10, 'paid', 8000, 'USD', '2026-11-02 14:15:00'),
(4, 12, 'PAID', 3000, 'EUR', '2026-11-02 16:45:00');
The transform is a staging model in the warehouse. Note the inconsistent PAID from the source: the raw table keeps it exactly as it arrived, and the model fixes it.
CREATE VIEW staging.orders AS
SELECT
id,
customer_id,
lower(status) AS status,
amount_cents / 100 AS amount,
upper(currency) AS currency,
toDate(created_at) AS order_date
FROM raw.orders;
SELECT order_date, currency, sum(amount) AS revenue
FROM staging.orders
WHERE status = 'paid'
GROUP BY order_date, currency
ORDER BY order_date, currency;
2026-11-01 EUR 120
2026-11-02 EUR 30
2026-11-02 USD 80
If the rule changes next month (say, partially refunded orders should count at their net amount), you change the view or the model behind it, and the whole history is recomputed from raw.orders. No re-extraction from the production database, no backfill job. In a real project the view would be a model in dbt or a similar tool, with tests on its output.
Governance
Governance cuts both ways, and this is where ETL keeps its strongest case.
ELT is better for lineage and auditability. Because the raw copy sits next to the models, anyone can trace a dashboard number back to the source rows that produced it, and every transform is SQL in version control rather than logic hidden in a GUI tool. That makes it easier to attach data contracts and tests to each layer.
ETL is better for data minimisation. In ELT, raw personal data lands in the warehouse, and from there it can spread to staging tables, snapshots, extracts and backups. You can restrict who reads it, for example with Snowflake’s dynamic data masking, which needs Enterprise Edition or higher and applies the policy “at query runtime”. But a mask controls who can see a value; the value is still stored. If a deletion request arrives, every copy has to be found and erased, and on ClickHouse a lightweight delete does not physically remove the rows until a merge rewrites the part (see how to delete rows in ClickHouse).
When does ETL still win?
Personal data that should never be stored
GDPR’s Article 5(1)(c) requires personal data to be “adequate, relevant and limited to what is necessary in relation to the purposes for which they are processed”. If the analysis only needs to count unique customers, the warehouse does not need their email addresses. Hashing or dropping the column before the load is the simplest way to make that true, because a value that was never stored cannot leak, be over-shared or be forgotten in an erasure request.
You do not need a separate ETL platform for this. Three common places to do it:
-
In the source, with a view the loader reads instead of the table. On Postgres 11 or later,
sha256()is built in:CREATE VIEW export.customers AS SELECT id, encode(sha256(convert_to('per-env-salt' || lower(email), 'UTF8')), 'hex') AS email_hash, split_part(lower(email), '@', 2) AS email_domain, country, created_at FROM public.customers; -
In the loader. Fivetran’s column hashing “ingests your data, hashes it, and then writes the hashed data to your destination”, using SHA-256 with a salt per destination so hashed values stay joinable. Its docs also note that a blocked column’s data “still passes through our systems and may be stored temporarily during a sync”. Airbyte’s mappings can hash, encrypt, rename fields and filter rows, but only on its Plus, Pro and Enterprise Flex plans, not Core or Standard.
-
At the warehouse door. In ClickHouse, an insert into a
Nullengine table stores nothing, but materialized views attached to it still fire on each inserted block. That lets you hash before anything is written to disk:CREATE TABLE raw.signups_in (id UInt64, email String, country String, created_at DateTime) ENGINE = Null; CREATE TABLE raw.signups ( id UInt64, email_hash FixedString(32), email_domain String, country LowCardinality(String), created_at DateTime ) ENGINE = MergeTree ORDER BY (created_at, id); CREATE MATERIALIZED VIEW raw.signups_scrub TO raw.signups AS SELECT id, SHA256(concat('per-env-salt', lower(email))) AS email_hash, splitByChar('@', lower(email))[2] AS email_domain, country, created_at FROM raw.signups_in;After inserting two signups into
raw.signups_in,SELECT count() FROM raw.signups_inreturns 0 andraw.signupsholds only the hash and the domain. ClickHouse matches the view’s columns to the target table by name. In our 25.8 test, aSELECTcolumn with no matching target column madeCREATE MATERIALIZED VIEWfail, while a target column theSELECTleaves out is silently filled with its default value, so alias every column to the exact target name.
Two caveats apply to all three. A salted hash of an email is pseudonymisation, not anonymisation: anyone with a list of candidate emails and the salt can recompute it, so the hash is still personal data under GDPR and the salt needs to be kept secret. And each option differs in how far the raw value travels. The source view keeps it inside the source database; the loader and warehouse-door options still send it over the network to that system.
Small or operational destinations
ELT assumes the destination is an analytical engine with spare compute. When the destination is a reporting replica on a small Postgres instance, a SaaS tool’s import API or a spreadsheet, it cannot run heavy joins and should not store raw history. Transform first, load the small finished result.
Transforms that SQL cannot express
Parsing PDFs, calling a geocoding or currency API, decrypting fields with keys the warehouse must not hold, or running a model in Python are transforms that belong outside the warehouse. Most warehouses now run Python or call external functions (Snowflake has Snowpark, BigQuery has remote functions), but if the transform depends on a library, a secret or a service the warehouse should not touch, doing it in flight is simpler and safer.
Fixed capacity and strict latency
If the warehouse is a fixed-size cluster that already runs near its limit during business hours, adding transform work there competes with dashboards. Moving heavy transforms to off-peak schedules, or to a separate engine, is a legitimate ETL-shaped choice. The same goes for streams that must be filtered or enriched within seconds before they reach a consumer.
The middle ground most teams run
In practice the question is rarely “ETL or ELT” for a whole company. The common shape is:
- Light, mechanical transforms in flight: drop columns you do not need, hash or remove personal data, cast obviously broken types, filter out test tenants.
- Load the scrubbed raw data into a raw layer that is never edited by hand.
- All business logic in the warehouse: staging, joins, metrics and tests as version-controlled SQL.
Some vendors call this EtLT, with a small t before the load. The rule of thumb that keeps it sane: anything that is a business decision (what counts as revenue, who is an active customer) belongs in the warehouse where it can be changed and rebuilt; anything that is a privacy or safety decision (which columns may be stored at all) belongs before the load where it cannot be undone by a careless query.
How to choose between ETL and ELT
Ask these questions per source, not once for the whole platform:
| Question | If yes, lean towards |
|---|---|
| Does a column contain personal or secret data that no analysis needs in clear text? | Scrub before load (ETL for that column) |
| Is the destination an analytical warehouse with elastic or spare compute? | ELT |
| Do the business rules on this data change often, or do many teams model it differently? | ELT |
| Is the destination small, operational or a third-party tool? | ETL |
| Does the transform need a library, API or key the warehouse should not have? | ETL for that step |
| Do you need to rebuild history when a definition changes? | ELT, with the raw layer kept |
If most answers point to ELT and only one or two columns are sensitive, you do not need an ETL platform. Hash those columns in the source or the loader and run everything else in the warehouse.
If you want the ELT side as one platform rather than several tools, Goni is one option. Full disclosure: this is our product. Goni is one AI platform for your entire data stack: ELT connectors with full and incremental batch loads from databases and files into a ClickHouse warehouse, a YAML semantic layer where models compile to ClickHouse SQL with tests and freshness checks, BI with a SQL IDE, dashboards, alerts and scheduled reports, AI Q&A grounded in your defined metrics, and access control with row filters and column masks (hash, redact or domain-only). The honest drawbacks: those masks apply at query time, so a column that must never be stored still needs scrubbing at the source; ClickHouse is the only warehouse Goni queries; and it is not open source. You can try it with the 14-day free trial.
FAQ
What is the main difference between ETL and ELT?
The order of the steps and where the transform runs. ETL transforms data in a separate engine and loads only the finished result into the warehouse. ELT loads raw data into the warehouse first and transforms it there, usually with SQL. ELT keeps a raw copy you can rebuild from; ETL keeps less data in the warehouse.
Is ELT replacing ETL?
For analytics warehouses, ELT is now the default, because cloud warehouses make storage cheap and compute elastic. ETL remains the right choice for specific steps: removing personal data before it is stored, loading small or operational destinations, and transforms that need code or secrets the warehouse should not have. Most teams run a mix of both.
Is dbt an ETL or ELT tool?
dbt is the transform step of ELT. It does not extract or load data; it runs SQL (and on some platforms Python) models inside the warehouse on data that a loader such as Fivetran or Airbyte has already landed. It adds dependency ordering between models, tests and documentation on top of that SQL.
Is ELT compliant with GDPR?
It can be, but it needs more care than ETL. Raw personal data lands in the warehouse and can spread to copies, so you need access controls, a retention plan and a way to erase data everywhere. Hashing or dropping personal columns before the load reduces that burden, though a salted hash still counts as pseudonymised personal data.
When should I use ETL instead of ELT?
Use ETL when a column must never be stored in the warehouse, when the destination is too small to transform data, when the transform needs a library, API or key the warehouse cannot use, or when the warehouse has no spare capacity. You can apply ETL to just those steps and keep everything else as ELT.