smaple.tr
AI & Data

ETL vs ELT: Where the Transform Runs and How to Choose

Mehmet Kurtipek
December 18, 2025
13 min read
AI & Data
ETL
ELT
dbt
Data engineering

ETL (extract, transform, load) cleans and reshapes data on its way to the destination, so only finished tables arrive. ELT (extract, load, transform) copies raw data into the warehouse first and transforms it there, usually as SQL models in a tool like dbt. If you analyse data in a cloud warehouse such as BigQuery, Snowflake or Redshift, ELT is the sensible default; ETL, or a hybrid that does a small amount of work in flight, is still the right call when the destination isn't a warehouse or when some fields must never land raw.

Nearly every practical consequence follows from one question: where does the transformation code run? The answer decides who pays for the compute, whether you keep raw history, and how much work it is when a business rule changes.

The difference side by side

ETL

ELT

Where transformation runs

A separate engine: Python jobs, Spark, an integration tool

Inside the destination warehouse, as SQL

What lands in the destination

Finished, cleaned tables

Raw copies first, then models built from them

Raw history

Lost unless you archive it separately

Kept in the warehouse by default

When a business rule changes

Change the job, then reprocess from the source or an archive

Edit the model and rebuild it from the raw tables

Who writes the transformations

Data engineers, in Python, Java or a visual tool

Anyone who writes SQL, analysts included

Where the compute bill lands

Your servers, or the integration tool's licence

The warehouse (bytes scanned, credits, slots)

Personal data

Can be removed before it lands

Lands raw unless you mask it in flight

Typical tools

Informatica (now owned by Salesforce), Talend (now part of Qlik), SSIS, custom Python

Fivetran or Airbyte to load, dbt to transform

Two rows you'll see in many comparison tables don't hold up. "ELT is faster" depends entirely on the warehouse and the job, and ETL engines parallelise too. "ETL is for structured data only" has it backwards: a Python ETL job can parse PDFs, HTML or images, which is awkward to do in warehouse SQL.

How an ELT pipeline is put together

Whatever the tools, most ELT setups have three layers:

  1. Raw: tables that mirror the sources, written by a connector. Nobody edits them by hand.
  2. Staging: one cleaned model per source table, with renamed columns, fixed types and duplicates removed.
  3. Marts: the tables people query and dashboards read, joined and aggregated for a specific business purpose.

Loading comes from a managed connector (Fivetran, Airbyte or your cloud provider's own service) or from change data capture. Log-based CDC, for example Debezium reading PostgreSQL's write-ahead log, sees every insert, update and delete as it is committed. Polling a table by its updated_at column is simpler, but it never sees rows that were hard-deleted, so they stay in the warehouse until something reconciles them. Our modern data stack post goes through the tools for each layer.

The transformations are SQL files that the tool runs in dependency order. In dbt, an incremental staging model looks like this:

-- models/staging/stg_orders.sql
{{ config(materialized='incremental', unique_key='order_id') }}

select
    order_id,
    customer_id,
    lower(status) as status,
    cast(total_amount as numeric) as total_amount,
    updated_at
from {{ source('shop', 'orders') }}

{% if is_incremental() %}
  -- only on incremental runs: rows at or after the newest one already loaded
  -- (coalesce stops an empty target table from filtering out every row)
  where updated_at >= (select coalesce(max(updated_at), '1900-01-01') from {{ this }})
{% endif %}

On the first run dbt builds the whole table. After that, the is_incremental() block limits the query to recent rows, and unique_key makes dbt update orders that changed instead of appending duplicates, which is also why the filter can safely use >= (dbt docs on incremental models). Leave out the coalesce and a target table that exists but is empty returns null for the max; the comparison is then never true, and the run reports success having loaded nothing.

Testing moves too. In ELT, checks such as unique and not_null run after the data has loaded, against the staging models. With dbt build, a failing test on one model makes the models downstream of it skip, so a broken source table doesn't reach the dashboards. Checks that must happen before anything is written, such as "did the extract return roughly the usual number of rows?", belong in the extraction job.

The biggest practical gain shows up when the logic changes. On the data-migration platform we built for Tribute Technology, raw data from each funeral home's old system landed in MongoDB first. Staff then mapped fields in a web interface; the mappings were versioned and could be cloned and re-run, and the results were approved or rejected before anything was exported to Tribute's format (case study). That is the ELT shape outside a warehouse: the raw copy stays put, so a changed mapping can be run against it again.

When ETL is still the better choice

ELT assumes the destination is a database that can run heavy SQL and keep raw copies. When that isn't the case, transform first.

The destination is an application

If the target is another product's API, or an operational database with strict validation, you can't load raw data and tidy it later. The destination either rejects records that don't fit its schema or accepts them and shows them to users. The migrations we run for FrontRunner work this way: obituaries, images, videos and condolences are extracted from a funeral home's old website and pushed into FrontRunner through its API, and each job is checked and, when needed, re-run or fixed during the client's launch (case study). Each record has to be in FrontRunner's shape before it is sent.

The real-time odds platform we built and ran for EdgeHunters until early 2026 was the same idea at a much higher frequency. Spiders collected odds from 44 sportsbooks, team and league names were normalised and validated, and every five minutes the latest odds were pushed to S3 and PostgreSQL for the product to read. One mismatched team name makes a recommendation worthless, so the cleaning had to happen before anything reached the store the product read.

The transformation isn't SQL-shaped

Parsing PDFs, scraping HTML, geocoding or asking an LLM to pull fields out of a document all run in code, before the data reaches a table. The field-ticket workflow we built with an agency partner for an oilfield services company is a small example: an LLM turns each PDF ticket into structured JSON, and only then is it filed and reported.

The volume is small and there is one destination

Moving a few thousand rows a night from one system into one report doesn't need a warehouse, connectors and dbt. A scheduled Python job that cleans and writes, with a test or two, is cheaper to run and easier for the next developer to understand.

Personal data: mask it before it lands

Loading everything raw is ELT's weak spot with personal data. Copy a customers table as it is and the names, emails, phone numbers and ID numbers come with it, readable by anyone with warehouse access and stored in whatever region the warehouse runs in.

The usual fix is a hybrid sometimes called ETLT: a narrow step in flight that drops or pseudonymises sensitive columns, followed by normal ELT for everything else. Keep that step small. It should only remove or replace fields; business logic still belongs in the warehouse, where it is versioned and tested.

Plain hashing doesn't protect identifiers that come from a small space. A US Social Security number has nine digits, so there are fewer than a billion possible values, and anyone holding the hashes can hash every candidate and look the results up. Use a keyed hash (HMAC) whose key never enters the warehouse:

import hashlib
import hmac
import os
from typing import Optional

PII_KEY = os.environ["PII_HMAC_KEY"].encode()  # lives with the extraction job, never in the warehouse


def pseudonymize(value: Optional[str]) -> Optional[str]:
    if value is None or not value.strip():
        return None  # blanks must not all share one hash
    normalized = value.strip().lower()
    return hmac.new(PII_KEY, normalized.encode("utf-8"), hashlib.sha256).hexdigest()


def mask_customer(row: dict) -> dict:
    row = dict(row)
    row["email_key"] = pseudonymize(row.pop("email", None))
    row.pop("phone", None)  # not needed for analytics, so it never reaches the warehouse
    return row

The same input always produces the same key, so you can still join tables and count distinct customers. Missing or blank values come back as None (a null in the warehouse); hash them and every customer without an email turns into the same person. Be clear about what this achieves, though. Under the GDPR, pseudonymised data that could be linked back to a person with additional information still counts as information about an identifiable person (Recital 26). Masking limits who can see identities and what leaks if the warehouse is exposed. It doesn't take the data out of the GDPR's scope, and it doesn't decide where the data may be stored, so choose the warehouse region with the same care.

What each approach costs

There is no single honest number here, because the two approaches send the bill to different places.

With ETL you pay for the machines or service that run the transformations, plus the integration tool's licence if you use one, and the warehouse mostly stores and serves finished tables. The cost is steady and easy to see. Engineering time is usually the bigger line.

With ELT, loading is cheap to start with. Managed connectors are priced on volume (Fivetran, for example, counts monthly active rows per connection), and the transformations run on warehouse compute, which turns every model into a recurring query. BigQuery's on-demand price is $6.25 per TiB scanned after the first free TiB each month, charged on the columns a query reads even when it has a LIMIT (BigQuery pricing). A model that rebuilds a 2 TiB table from scratch every hour scans about 1,440 TiB in a 30-day month, roughly $9,000 at list price. Built incrementally, each run can read just the new slice, but only if the raw table is partitioned on the filter column and BigQuery can prune partitions from the filter. The subquery in the model above doesn't qualify: BigQuery prunes only on a constant expression, and a value read from another table isn't one (BigQuery docs on partition pruning). Add a constant bound next to it, such as and updated_at >= timestamp_sub(current_timestamp(), interval 3 day), wide enough to cover a few failed runs, and check the dry-run bytes estimate before you schedule the model. Snowflake bills a running virtual warehouse per second with a 60-second minimum each time it starts (Snowflake docs), so a schedule that wakes a warehouse every few minutes for tiny jobs pays that minute every time.

So in ELT, someone has to own warehouse spend. Look at the most expensive queries every month and start with the models that rebuild in full.

Newer terms you'll run into

Reverse ETL moves modelled data out of the warehouse and back into the tools people work in, such as a CRM or an ad platform. It sits after either pattern and doesn't change the choice between them.

Zero-ETL means a cloud provider runs the extract-and-load part for you. On AWS, for instance, a zero-ETL integration replicates tables from Aurora, RDS or DynamoDB into Redshift without a pipeline you maintain. You still write the transformations, so in practice it is ELT with the EL managed.

Streaming ELT sends CDC events through a queue such as Kafka and loads them continuously instead of in batches. It earns its extra moving parts when minutes matter. For a report people read once a morning, it doesn't.

The vendors have also consolidated. Fivetran and dbt Labs completed their merger on 1 June 2026, so the connector side and the transformation side of many ELT stacks now come from one company. dbt Core remains open source.

How to choose

Go through these in order:

  1. Is the destination a warehouse or lakehouse that can run your transformations in SQL? If not, use ETL.
  2. Must any field stay out of the warehouse, or out of a particular country? Drop or mask it in flight, then carry on.
  3. Do some transformations need code that SQL handles badly, such as documents, HTML or LLM extraction? Run those steps before loading, or land the raw files and process them with Python next to the warehouse.
  4. Do business rules change often, or do people need to answer old questions with new logic? That is the strongest argument for ELT, because the raw history is still there.
  5. Who will maintain it? Analysts who write SQL will be comfortable running ELT with dbt. A single backend developer moving data between two systems is often better served by a well-tested Python job.

Whichever you pick, reconcile the output against a number the source produces independently, such as a payout total or a case count; matching row counts only proves that rows moved. In the BI team we worked in at Savings United, that meant automated QA comparing affiliate networks' payout data with the warehouse (case study). On the Tribute platform, the client's product owner checked migrated data against A/R reports, case counts and spot checks.

If your ELT destination might be object storage rather than a warehouse, our data lake vs data warehouse post covers that decision.

Frequently asked questions

Is dbt an ETL or an ELT tool?

ELT. dbt only handles the transform step: it compiles SQL models and runs them inside your warehouse. Extraction and loading come from something else, such as Fivetran, Airbyte or your own scripts.

Do I need Airflow to run dbt?

Not at first. dbt already works out the order in which models run; what it needs is something that starts dbt build once the loads have finished. For one or two runs a day, a cron job, a scheduled CI workflow or the job scheduler in dbt Labs' hosted dbt platform is enough. An orchestrator such as Airflow or Dagster is worth setting up when extraction, the dbt run and the steps after it are spread across several systems that have to wait for each other, or when a failed load must stop the transformations from running on stale data.

Is ETL obsolete?

No, although one version of it has mostly gone: the big on-premises ETL server feeding a warehouse too weak to run its own transformations. The pattern itself is still how data reaches APIs and operational databases, and the masking step in front of an ELT pipeline that carries personal data is a small ETL job.

How do we move from ETL to ELT without a big rewrite?

Start loading raw copies of the sources alongside the existing pipeline. Rebuild one report's logic as dbt models and compare its output with the old report until the numbers match, then retire that part of the ETL job and move on to the next report.

If you'd like a second opinion on a pipeline design, this is the kind of work our data and AI team does.

Related Articles

August 11, 2026

MLOps Guide: What to Set Up First, and What Can Wait

MLOps gets a model into production and keeps it useful there. Here is the order we'd set it up in, with current MLflow and DVC examples, and what changes for LLM features.

Read More: MLOps Guide: What to Set Up First, and What Can Wait
August 9, 2026

Computer Vision Applications: Where It Works and Where It Struggles

Where computer vision works today, from inspection lines to invoices and medical scans, what makes some applications hard, and when a general vision model saves you training your own.

Read More: Computer Vision Applications: Where It Works and Where It Struggles
August 4, 2026

AI Agent Development: When You Need One and How to Build It

An AI agent is a language model working in a loop with tools. When you need one, the loop in Python, choosing a framework, keeping it safe, and what each run costs.

Read More: AI Agent Development: When You Need One and How to Build It