P0 INCIDENTN+1 Query Kills Database After Feature Launch#ENG-WAR-023StripeHubSpot
Mid~20 min15:00
API CPU Usage99.2%↑ 42%
P99 Latency2450 ms↑ 400%
5xx Error Rate12.4%↑ 12%
DB Connections14,492↑ 800%
bastion-prod-1.internal — bash
[SYSTEM] War-Room terminal initialised. Bastion host connection established.
[SYSTEM] Active incident: N+1 Query Kills Database After Feature Launch
[SYSTEM] Type "help" for a list of investigation commands.
user@bastion:~$
Execute Remediation⚠ PROD
A new "Customer Overview" dashboard feature launched 30 minutes ago. Database CPU went from 20% to 98% immediately after. Query logs show hundreds of thousands of tiny SELECT queries per second: SELECT * FROM invoices WHERE customer_id = $1 being called once per customer in a loop. Before the launch, load tests showed no issues (only 50 test customers). Production has 500,000 customers.

What is your first action?