The side quest that freed 10% of our database
A single lateral-join query answering "who's on call for this rotation layer right now" consumed 34% of incident.io's Postgres replica CPU.
A single lateral-join query answering "who's on call for this rotation layer right now" consumed 34% of incident.io's Postgres replica CPU.
incident.io built an internal "data brain" agent that answers business questions against BigQuery by encoding institutional analyst knowledge rather than relying on raw text-to-SQL.
incident.io structures its dbt warehouse in three layers: staging models that rename, cast and lightly combine source tables, intermediate models that handle reusable joins and expensive calculations, and marts split into internal dim/fct tables and customer-facing insights models.
Postgres indexes pay off for frequently run queries that discard most rows they read, need results in a specific order, or must enforce uniqueness.
incident.io runs data quality tests with dbt's native testing and tackled two problems: flaky relationship tests and slow debugging of failures.
incident.io's two-person data team reworked its BigQuery/dbt analytics stack as the company grew from 10 to 30 people.