Engineering Notes

RSS

Database performance, plans, and telemetry.

Field notes from building Culprit SQL: reading execution plans, untangling lock cycles, and running database telemetry without vendor lock-in.

· 10 min read
Latest

24/7 SQL Root-Cause Investigations, Warehouse Tables, and DRI Alerts

A complete engineering reference for Culprit's unattended collector: every automatic root-cause investigation (deadlocks, TempDB, PAGELATCH_EX, THREADPOOL, memory grants, Hyperscale log rate, XID wraparound), all 18 ADX and ClickHouse V1 tables, and copy-paste DRI alert queries.

SQL ServerPostgreSQLADXClickHouseAlerting
Read note →
· 8 min read

Microsoft Database Hub vs. Culprit + ADX: Depth, Lock-In, and Monthly Cost

Database Hub in Microsoft Fabric is now GA as Microsoft's replacement for Azure SQL Database Watcher. I put its Fabric Capacity Unit math, Power BI Pro viewer cliff, and portal charts next to running Culprit on your own ADX or ClickHouse cluster.

Azure SQLADXSQL ServerPostgreSQLTelemetry
Read note →
· 7 min read

Monitor 100+ Azure SQL and PostgreSQL Databases on AKS with Helm and ADX

A copy-paste production guide: auto-discover Azure SQL and Amazon RDS databases, group shared Elastic Pools onto safe shards, and deploy Culprit's collector on AKS with Workload Identity.

Azure SQLPostgreSQLADXKubernetesTelemetry
Read note →
· 6 min read

Database Fleet Triage on ADX Without Grafana Enterprise or Fabric F64

Grafana's Azure Data Explorer plugin requires an Enterprise license, and Fabric gates free viewers below F64. We built a driver-free web binary that renders fleet triage dashboards and .sqlplan diffs directly over read-only ADX and Blob Storage.

ADXAzure SQLPostgreSQLExecution PlansTelemetry
Read note →
· 7 min read

Beyond Portal Copilots: Database MCP Agents That Open Verified Index PRs

Portal chat copilots summarize slow queries in a browser tab and leave the risky migration work to you. Pairing archived ADX plans, SqlCommenter file:line tags, and culprit lint-sql lets coding agents open lock-safe PRs without touching production.

MCPAI AgentsSQL ServerPostgreSQLExecution Plans
Read note →
· 7 min read

Alert on SQL Culprits and Deploy Regressions, Not 40 Blocked Victims

Why standard wait and session alerts page on-call for victims instead of root causes, and how Culprit's pluggable notifier sends one auto-resolving PagerDuty, Slack, or Teams alert with the culprit SQL.

SQL ServerPostgreSQLAlertingADXExecution Plans
Read note →
· 7 min read

ADX vs. ClickHouse for Database Telemetry: Cost, Schemas, and Tradeoffs

We wrote first-class Rust storage adapters for both Azure Data Explorer and ClickHouse against the exact same telemetry contract. Notes on 64-bit counter quirks, schema design, operational overhead, and real monthly bills from 5 to 500 databases.

ADXClickHouseTelemetryPostgreSQLAzure SQL
Read note →
· 6 min read

SQL Server Containers on Apple Silicon: Rosetta, AVX & ARM64

Azure SQL Edge retired in September 2025, and macOS 28 narrows desktop Rosetta 2. What actually happens to Linux Docker containers on M-series Macs, why SQL Server 2025 hit AVX startup crashes, and when to switch to Microsoft's native ARM64 image.

SQL ServerAzure SQLmacOSDocker
Read note →
· 8 min read

Why Database Monitors Cry Wolf: 7 Evidence Rules We Enforce in Rust

Dropping an index that a read replica relies on or indexing a 40%-selective column makes production slower. Seven anti-false-flag rules we hardcoded into Culprit's Rust check pipeline so alerts stay trustworthy.

SQL ServerPostgreSQLIndexesExecution PlansArchitecture
Read note →
· 5 min read

What I Use After Azure Data Studio Retired

Microsoft retired Azure Data Studio in February 2026. Here is how I inspect .sqlplan files, diff execution plans, and untangle deadlocks on macOS and in VS Code now.

SQL ServerAzure Data StudioVS CodeExecution Plans
Read note →
· 6 min read

Azure SQL Database Watcher Is Retiring Before GA: Keeping Your ADX Setup

Microsoft blocked new Azure SQL Database Watchers on November 9, 2026 and will stop existing ones on April 30, 2027. Here is how to keep database telemetry and root-cause alerts flowing into your own ADX cluster.

Azure SQLADXKQLTelemetryPostgreSQL
Read note →