Newest entry · · 8 min read
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.
- 1.Microbatch replaces the hand-written is_incremental() filter with configuration: event_time, batch_size, begin and lookback.
- 2.dbt filters every upstream ref or source that declares event_time. Upstream models without it are scanned in full for every batch.
- 3.Each batch is an independent query, so you can backfill a date range with --event-time-start and --event-time-end and retry only the failed batches.