Go back

Incident console Simulation

mysql-replica · commerce

  1. Inspect
  2. Diagnose
  3. Apply fix
  4. Verify

Your mission

The order history endpoint exceeds its SLO after data growth. Database CPU is high, but only one query dominates the slow log.

workload
mysql/commerce
status
latency degraded
symptom
tenant order lookup performs a full table scan

Current objective

Inspect the execution plan on the read replica before proposing an index.

Show a hint Try: mysql -e 'EXPLAIN ANALYZE SELECT * FROM orders WHERE tenant_id=42 ORDER BY created_at DESC LIMIT 50;'

Restart clears this attempt. Completed labs are remembered in this browser.

Command transcript

Your commands and their output will appear here.

Newsletter

Get site updates by email.

From time to time, I’ll share updates when there’s something worth sharing.

Subscriptions are managed through Buttondown. Unsubscribe whenever you want. Buttondown’s privacy policy .