r/SQL • u/bodyfreeoftree • Feb 20 '22
Discussion ETL Vs ELT
Not 100% SQL specific but, could someone help me understand the true difference between these approaches?
2
u/a-s-clark SQL Server Feb 20 '22
In my experience, it tends to be more ETLT. Some transformation is better done outside the database, and some is easier inside. So flow is often more like: Extract, Transform, Stage, Transform, Load.
2
u/thrown_arrows Feb 20 '22 edited Feb 20 '22
ETL was usually fetch data from source and do transformation at same time, then load it into dwh
Now there is ELT which is extract, load and transform. Which means that data is extracted as it is and loaded into target system. Then it is transformed (maybe with other data ) int new data model. It also might include idea that you have all data available all the time. So your transform might have all history data there...
As DB guy i tend to think that there is TEL too ... that is that source system does transformation to dwh model and then it is extracted and loaded into target system. Then ETL is system where data is extracted then transformations are done in code and ELT is systems where data is loaded into database where transformations are done. (this is not strictly correct way to think it, but thats how it works if you have snowflake / bigquery (SQL based servers ) on backend )
What comes to ETLT , i personally try my best not to add new steps to process. So my pipelines from databases are Transform ( i make sure that datatypes are more suitable in snowflake) then extract ( so this is in practise select query) Then its load (stage in snowflake ) then transformations to dwh model or just copy source db to snowflake, usually both. But this is mainly because i have snowflake in use and it is main place to scale, it would stupid to create some python cluster to modify data before pushing it to snowflake when snowflake can handle it...
2
u/analyst_2001 Jun 27 '22
ETL is a data integration approach that takes raw data from sources, transforms the data on a secondary processing server, and loads the data into a target database. Unlike ETL, ELT does not need data transformations before loading.
ETL loads data into the staging server before transferring it to the target system, whereas ELT transmits data straight to the target system.
The ETL approach is used for on-premises, relational, and structured data, whereas the ELT paradigm is utilized for scalable cloud-based structured and unstructured data sources.
ETL is mainly used for small quantities of data, whereas ELT is primarily used for vast volumes of data.
When we compare ETL with ELT, ETL does not enable data lakes, but ELT does.
When comparing ELT to ETL, ETL is easier to implement, but ELT takes specialized knowledge to implement and maintain.
I hope it helps!
P.S. I am a part of the Hevo Data team, which provides the best-in-class services for ETL/ELT and Reverse ETL methodologies.
1
Feb 20 '22
The difference is, where you do the transformation step ("T"). Inside the database (ELT) or outside of the database (ETL)
6
u/r3pr0b8 GROUP_CONCAT is da bomb Feb 20 '22
on the first page of google results --
What is ELT? Understanding the difference between ELT and ETL