<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Barzan Mozafari — Writing</title><description>Technical writing on reliable AI systems, query optimization, and cloud data infrastructure.</description><link>https://barzanmozafari.com/</link><item><title>Why Slower SQL Can Make Your dbt Pipeline Faster</title><link>https://barzanmozafari.com/blog/why-slower-sql-can-make-your-dbt-pipeline-faster/</link><guid isPermaLink="true">https://barzanmozafari.com/blog/why-slower-sql-can-make-your-dbt-pipeline-faster/</guid><description>Modern analytics is increasingly organized as recurring SQL pipelines rather than isolated SQL statements. Tools like dbt have gained extreme popularity in recent years, allowing teams to write each transformation as SQL and make dependencies between transformations explicit. This has led to directed acyclic graphs (DAGs) with hundreds or thousands of interdependent SQL models. Traditional query optimizers and source-to-source query rewriters are not effective at optimizing these expensive pipelines. In this post, we explore how DAGSmith treats these explicit dependencies as optimization signals and uses an LLM to find pipeline-level refactorings and optimize a dbt project holistically.
</description><pubDate>Mon, 14 Sep 2026 00:00:00 GMT</pubDate><category>dbt</category><category>query rewriting</category><category>database optimization</category><category>snowflake</category><category>databricks</category><author>Barzan Mozafari</author></item></channel></rss>