# What is ELT, and how is it different from ETL?

Loading raw data into the warehouse or lakehouse first and transforming it there, the reverse of the older ETL order, which transformed data before loading it.

- Page: https://tecyfy.com/concepts/elt
- Subject: Data engineering in the AI era (https://tecyfy.com/concepts)
- Level: beginner
- Also called: ETL, Extract, load, transform

ETL and ELT use the same 3 letters: extract, load, transform. The only difference is the order, and that order says a lot about what storage and computing cost when a system was designed.

## ETL: clean it before you store it

In ETL, data is extracted from a source, transformed on the way (cleaned, joined, summed) and only then loaded into the warehouse. For decades this made sense. Warehouse storage and computing were expensive and often ran on a company's own hardware, so you stored only the finished result, in exactly the shape the reports needed.

The weakness is that the raw data never arrives. If the business later wants a column the transformation dropped, or finds a bug in how refunds were handled, you have to go back to the source and run it all again, if the source still has the data.

## ELT: store it raw, change it in place

ELT flips the last 2 steps. Raw data is loaded first, as it came, and transformed inside the warehouse or lakehouse with that system's own computing power, usually in SQL.

This became the common order with cloud platforms, which made storage and computing available on demand, at scale, paid for as used. Once storing raw data is cheap and the warehouse can transform it quickly, there is little reason to throw anything away before it lands.

The main gain is the one ETL lacked: the raw data is kept, so a transformation can be fixed or changed later and rerun over everything. Tools such as dbt are built for that T step.

## ELT in a lakehouse

In a [Lakehouse](https://tecyfy.com/concepts/lakehouse), ELT is the [medallion architecture](https://tecyfy.com/concepts/medallion-architecture). The bronze layer is the L: data as it arrived, often with most fields kept as plain strings, with full history so it can be processed again. Silver and gold are the T, done step by step inside the platform.

The real 2-tier setups of the last decade were a mix. Data was extracted and loaded into a [lake](https://tecyfy.com/concepts/data-lake), then transformed and loaded again into a [warehouse](https://tecyfy.com/concepts/data-warehouse). Each extra copy was another job that could fail and another place for the numbers to drift apart.

## The cost of keeping everything

ELT is not free. Raw data includes what ETL would have filtered out: personal details, fields nobody should read, test records. Keeping it means governing it, with access rules on the raw layer as well as the finished one. And the transformations still need checks, because a bad transform in the warehouse is just as wrong as a bad one on the way in.

## Why it matters for AI

AI work changes its mind often. A better embedding model arrives, or a different way of [chunking](https://tecyfy.com/concepts/chunking) documents works better. On Databricks, switching the embedding model of a self-managed AI Search index means a new index and new embeddings for every document. If the raw text was kept, that is a rerun. If only the old vectors were kept, it is a rebuild from the sources, if they are still there. That is the ELT argument again, in a new place.

## Related

- [Data Pipeline](https://tecyfy.com/concepts/data-pipeline): A set of steps that moves data from where it is made to where it is used, cleaning and reshaping it on the way, run on a schedule or as data arrives.
- [Medallion Architecture](https://tecyfy.com/concepts/medallion-architecture): Organising a lakehouse in 3 layers of rising quality: bronze for raw data, silver for cleaned and joined data, and gold for tables shaped for reports and AI.
- [Data Warehouse](https://tecyfy.com/concepts/data-warehouse): A database built for analysis: cleaned, structured data from many systems, kept in one place and shaped for fast reports and dashboards.

## Sources

- [Understanding ELT: Extract, Load, Transform](https://www.getdbt.com/blog/extract-load-transform)
- [Lakehouse: A New Generation of Open Platforms that Unify Data Warehousing and Advanced Analytics](https://www.cidrdb.org/cidr2021/papers/cidr2021_paper17.pdf)
- [What is the medallion lakehouse architecture?](https://docs.databricks.com/aws/en/lakehouse/medallion)
- [Databricks AI Search](https://docs.databricks.com/aws/en/vector-search/vector-search)
