· 8 min
dbt Microbatch: Incremental Models Built by Time Batch
How the dbt microbatch strategy works: event_time, batch_size, lookback, targeted backfills, retrying failed batches, and when it beats a hand-written filter.
- #dbt
- #incremental-models
All stacks · Transformation
SQL transformation, testing, and analytics engineering.
· 8 min
How the dbt microbatch strategy works: event_time, batch_size, lookback, targeted backfills, retrying failed batches, and when it beats a hand-written filter.
· 9 min
Use dbt model contracts, versions, access levels and deprecation dates to change a widely used model without breaking the dashboards and teams that use it.
· 9 min
The dbt-snowflake configs that matter in production: per-model warehouses, query tags for cost attribution, grants, dynamic tables and incremental strategies.
· 10 min
dbt v2, the Rust engine once called Fusion, is GA. What changes from v1, how to check a project with dbt-autofix, and a safe side-by-side migration plan.
· 8 min
The honest split between dbt Core and dbt Cloud: what Cloud adds over CI plus an orchestrator, what seats cost, and when self-hosting stops being cheaper.
· 11 min
How incremental dbt models actually write: unique_key as merge grain, is_incremental filters, lookback windows, and late arrivals that silently drop rows.
· 5 min
Set up a dbt project from scratch: staging models, marts, tests, and documentation, with the project structure conventions used by real teams.
· 12 min
Cutting dbt run time and warehouse spend on a large project: find the real critical path, see when threads stop helping, and attribute cost per model.
· 12 min
Which Jinja patterns earn their indirection in a production dbt project, how to test macros, and the metaprogramming that makes a project unmaintainable.
· 12 min
Choosing check or timestamp snapshot strategies, what happens when a snapshot run is missed, and when a hand-rolled SCD2 model beats dbt snapshot.
· 11 min
How I lay out staging, intermediate, and marts so a dbt project still makes sense after two years: naming rules, ref boundaries, and folders that rot.
· 8 min
How to get dbt CI from 50 minutes to 4 with state comparison and defer: manifest artifacts, GitHub Actions wiring, and the edge cases that bite.
· 8 min
How I structure dbt tests in production: generic tests on keys, unit tests on logic, dbt-expectations on shape, severity that means something.
· 9 min
How dbt Projects on Snowflake works: deploying a DBT PROJECT object, EXECUTE DBT PROJECT, scheduling with tasks, Slim CI with IMPORTS, roles and limits.
· 6 min
Software-defined assets vs Airflow tasks, how partitions change backfills, asset checks versus dbt tests, and why warehouse credentials belong in resources.
· 10 min
How Dynamic Tables actually refresh: TARGET_LAG, the warehouse that pays for it, streams vs DT, and why I still keep dbt for gold.
· 10 min
CREATE STREAM, consume it in a Task MERGE, handle stale offsets, and know when Airflow should still orchestrate dbt and everything outside Snowflake.
· 9 min
How to use AI coding assistants for pipeline work: SQL generation, dbt refactoring, debugging, and docs, plus the failure modes to watch for.
· 5 min
Green sync, empty destination, raw JSON versus typed silver, self-host versus Cloud, and why Airbyte does not replace dbt.
dbt turned SQL transformation into software engineering: version control, tests, documentation, and environments for the layer of your platform that used to live in undocumented stored procedures. It is the closest thing analytics engineering has to a standard.
These guides focus on what separates a demo project from a production one — incremental models that survive late-arriving data, tests that catch real regressions instead of adding noise, slim CI that builds only what changed, and project structures that stay navigable past 500 models.
No — dbt only does the T. It transforms data already loaded into your warehouse using SQL SELECT statements it materializes as tables and views. Extraction and loading belong to tools like Fivetran, Airbyte, or your own ingestion pipelines.
dbt Core is the open-source CLI and works anywhere you can run Python; you bring your own scheduler and CI. dbt Cloud adds a managed scheduler, IDE, and APIs. Most teams start with Core plus GitHub Actions and revisit Cloud when scheduling and self-service become painful.
When rebuilding it from scratch is meaningfully slow or expensive — typically large event tables. Start with plain tables; convert to incremental when build time or cost hurts, and always define how late-arriving rows get picked up (a lookback window or merge keys).
Every model should declare not_null and unique on its primary key, and relationships on important foreign keys. Beyond that, test business invariants that would silently corrupt downstream numbers. Hundreds of redundant tests slow CI and train people to ignore failures.
No — they solve different problems. dbt builds the transformation DAG inside the warehouse; Airflow orchestrates across systems (ingestion, dbt runs, exports, ML). Many production stacks run dbt as one task inside an Airflow DAG.