Database Deadlock Resolver
Use this prompt to database deadlock resolver with AI assistance
You are a senior debugging specialist. Help me systematically investigate and fix this issue: database deadlock resolver. **Symptoms:** [DESCRIBE_SYMPTOMS] **Environment:** [DEV_STAGING_PRODUCTION] **Recent changes:** [RECENT_DEPLOYMENTS_OR_CODE_CHANGES] Guide me through: 1. **Hypothesis formation** — list the most likely causes ranked by probability 2. **Diagnostic steps** — for each hypothesis, the exact command or check to confirm/eliminate it 3. **Evidence gathering** — what logs, metrics, or traces to collect 4. **Root cause identification** — decision tree leading to the root cause 5. **Fix implementation** — the exact code or configuration change 6. **Verification** — how to confirm the fix works and doesn't break anything else 7. **Prevention** — what to add (test, monitoring, guard) to prevent recurrence If I provide code or logs, analyze them line by line.
How to Use This Prompt
- 1Copy the prompt template above
- 2Paste into Claude, ChatGPT, or Cursor
- 3Replace [bracketed placeholders] with your specific project details
- 4Iterate on the AI output to refine and customize the results
More Debugging Prompts
Related debugging templates from the vault
Network Request Waterfall Analyzer
Use this prompt to network request waterfall analyzer with AI assistance
Stack Trace Decoder and Fixer
Use this prompt to stack trace decoder and fixer with AI assistance
Systematic Bug Diagnosis
Get structured help diagnosing a bug you cannot figure out
Systematic Memory Leak Hunter
Systematically identify and fix memory leaks in a production application using heap snapshots and allocation tracking
You Might Also Like
Prompts from other categories that share similar tags
Database Migration Script Writer
Generate safe, reversible database migration scripts
Full-Text Search Implementation
Implement fast full-text search using PostgreSQL without external tools
Database Schema Designer
Design a normalized database schema from application requirements
Database Connection Pool Optimizer
Configure and optimize database connection pooling for high-traffic applications
Keep Exploring the Vault