Database vs Application Bottleneck: How to Tell

Half of ‘the database is slow’ incidents are actually app-side. The four-question diagnostic gets you to the right team in minutes.

Why misdiagnosis happens

"The database is slow" and "the app is slow" produce identical symptoms: slow responses, user-visible errors, on-call paged. The root cause differs; the right team to engage differs; getting it wrong wastes hours.

Four-question diagnostic

Metric pairs

Each bottleneck has a distinctive metric signature. Reading the right pair distinguishes the case in seconds; the alternative is guessing.

Common confusion

Two confusions account for most misdiagnosis. Pool exhaustion looks like DB-slow but is app-side; slow query plan after data growth looks app-side but is DB-side. The diagnostic catches both.

Antipatterns

What to do this week

Three moves. (1) Apply this pattern to your slowest production endpoint. (2) Measure p99 before/after. (3) Document the win and ship the runbook so the team can reproduce.