dbopt reads your T-SQL, your execution plans, and your live server metrics — then tells you exactly what's going to hurt and how to fix it, with the reasoning cited. Statically. Privately. No execution, no locks, no load on prod.
Static code, the optimizer's plan, and the live instance — fused into a single verdict you can act on.
A token-level T-SQL analyzer — 102 rules across hygiene, sargability, deprecated syntax, plan-shape, locking, tempdb, transactions, security and index design. Runs in-browser via WebAssembly or as a CLI. No connection required.
Fetches the estimated plan (compile-only — never runs the query) and breaks down operator cost, scans vs. seeks, and spill risk. We've dissected multi-hour queries without executing them once.
Watch real-time vitals (CPU load, throughput, contention, waits) on demand, and run a lightweight poller that samples Query Store, deadlocks and index usage into a local time-series for an on-demand pain report (e.g. the last 7 days) whenever you want one. This is on-demand triage you start and read yourself — not a hands-off APM with paging or alerting.
-- ✗ non-sargable: index on OrderDate can't be used SELECT * FROM Orders WHERE YEAR(OrderDate) = 2025; -- ✓ dbopt rewrite: range predicate stays sargable SELECT * FROM Orders WHERE OrderDate >= '20250101' AND OrderDate < '20260101'; -- ↳ wrapping the column in YEAR() forces a scan; -- a half-open range lets the optimizer seek.
Every rule ships a copy-paste fix, not just a warning — plus a one-click "send to the analyze editor."
Each finding cites the why — what the optimizer does, and how the rewrite changes the plan.
A 2022+ rewrite is never suggested against a 2019 target. Defaults to SQL Server 2025.
The assistant gets your SQL and the findings as context. Run it fully local (Ollama / web-llm) — nothing leaves — or fan one prompt out to several cloud providers to compare.
A single Rust binary, SQLite for storage. The analyzer never phones home. The AI assistant runs on a local model (Ollama / web-llm) so nothing leaves — or a cloud model if you want one, sending only your prompt. Built for pharma, finance and healthcare — shops that can't ship their data anywhere by accident.
No telemetry, no account, no analytics — ever. The only data that leaves is a prompt you deliberately hand to a cloud AI model.
Linux, macOS, Windows. No runtime, no external services, web UI embedded inside.
Estimated plans compile-only. DDL is preview-only — Safe-Apply never auto-runs a change.
No per-seat cost, no paywalled features — what the commercial tools do, without monetizing your pain.
A tagged scenario corpus proves every rule fires when it should — and stays silent when it shouldn't. Run cargo run -p eval -- --html and read the live board.
SQL Server is the only supported engine today — 100% of the rules are SQL-Server-specific. An Engine seam exists in the code, so Postgres and MySQL are exploratory directions, not committed releases or dates.
one self-contained binary · run it, open 127.0.0.1:3690 · all releases · build from source ↗
builds aren't code-signed yet — on first run, Windows: More info → Run anyway; macOS: right-click → Open. details ↗