Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

incident.io 15 min read Case study mediumAdept

A modern data stack for startups

A small startup data stack built in two weeks: Fivetran (plus Stitch for connectors Fivetran lacks, like the Close CRM) extracts data into BigQuery, dbt transforms it, and Metabase lets non-engineers explore it without SQL. The dbt project skips 'base' models and goes straight to staging tables, producing dimension and fact marts only when joining across sources or doing complex transforms, which keeps schema maintenance low. Other practical details: Fivetran's xmin-cursor fallback for Heroku Postgres without logical replication, per-engineer BigQuery dev datasets, and using dbt-metabase to turn dbt relationship tests into Metabase foreign keys so joins auto-fill.

Related posts

  • Updating our data stack

    incident.io mediumAdept

    incident.io's two-person data team reworked its BigQuery/dbt analytics stack as the company grew from 10 to 30 people. Fivetran moved to a separate BigQuery project after dbt tests in CI timed out because concurrent interactive queries exceeded BigQuery's 100-query quota. A CircleCI queue orb now serialises overlapping dbt runs that were creating and dropping the same tables. Unreliable GOOGLEFINANCE FX rates were replaced with a version-controlled seed plus a daily APILayer pull, checked by uniqueness and gaplessness tests. Models now materialise as tables rather than views, intermediate models sit between staging and fact/dimension models to avoid duplicated logic, SQLFluff enforces formatting, and Metabase folders separate sandbox work from locked-down core dashboards.

  • My first 3 months at incident.io

    incident.io mediumAdept

    A new Data Engineer's first quarter rebuilding a Fivetran, BigQuery, dbt, CircleCI and Omni data stack. Uploading dbt artifacts to GCS after each production run enabled `defer` for local development and `state:modified` for faster, more reliable CI. Prebuilt Docker images of the dbt repo replaced per-job environment setup. Google Datastream, Stitch and Airbyte all cost more than Fivetran because the Cloud SQL Postgres workload is upsert-heavy, so Fivetran stayed. Clustering Fivetran destination tables by primary key cut their BigQuery cost by about 75%, and making heavy dbt models incremental with enforced partitioning cut dbt costs by about 20%.

  • Building a cost-effective analytics stack with Modal, dlt, and dbt

    Modal mediumAdept

    Modal runs its whole analytics stack on Modal: dlt loads data from a Postgres read replica into Snowflake, dbt transforms it, and GitHub Actions handles CI/CD. dlt replaced hand-written psycopg2 code and removes manual schema definitions, Snowflake DDL and error-prone incremental logic. One daily job loaded about 1.4M rows in 47 seconds for fractions of a cent, versus an estimated $4,738/month on Fivetran. Also covered: fanning out per-table jobs with starmap, an "Activity Schema lite" dbt modeling approach with window-function concurrency queries, and a cicd.py script that discovers and deploys Modal apps from comment flags.

  • Data stack 2024

    incident.io mediumAdept

    incident.io's 2024 data stack runs Fivetran and Segment into BigQuery, dbt (run via Docker on CircleCI) for transforms, and Hightouch for reverse ETL. Analysis is split across Omni for internal BI, Explo for customer-facing embedded insights, and Hex for ad-hoc notebook work. Omni was chosen for its layered schema, shared and workbook models, which balance governance with flexibility. Local dbt development got faster by uploading each production manifest.json to GCS and wrapping `--defer --state` in bash aliases. Data pipeline failures, including flaky retries, now declare incidents and page responders automatically through incident.io's own On-call product, with urgency based on customer impact.

  • How SproutMe Cut Integration Test Time by 92.9% with DuckDB

    DuckDB mediumAdept

    SproutMe runs its Dagster + dbt ad-analytics pipeline against a local DuckDB file for development and CI while keeping BigQuery in production, switching targets via environment variables (including forcing TZ=UTC to match BigQuery timestamp semantics). Across 88 CI runs the per-merge integration test step dropped from a median 639 s to 45.6 s (92.9%), and local dbt backfill and incremental builds were 42–60% faster. CI builds the whole dbt project on DuckDB from committed fixtures and compares selected models to golden files. The gains are scoped to the dev/test workflow and are not a general engine comparison; production migration would need separate evaluation.

The quest for software engineering knowledge.

Look:
Layout: