/plushcap/analysis/airbyte/sql-data-modeling-with-dbt

Best practices for data modeling with SQL and dbt

What's this blog post about?

The text discusses the challenges faced by analytics engineers in writing efficient SQL data models and how dbt, a data transformation tool, can help improve their functionality. It highlights best practices for writing good SQL code such as creating base models to reference raw data, using correct joins, minimizing duplicates at the source, using CTEs instead of subqueries, and creating dbt macros for repeatable SQL logic. The author emphasizes that following these practices from the beginning can prevent technical debt in the long run.

Company
Airbyte

Date published
Aug. 23, 2022

Author(s)
Madison Schott

Word count
2129

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.