Database Query Timeout Handler

Implement robust query timeout handling strategies

6/11/2026
Prompt
Implement query timeout handling for this scenario:

**Application Stack:** {{APPLICATION_STACK}}
**Database System:** {{DATABASE_SYSTEM}}
**Query Types:** {{QUERY_TYPES}}
**Current Timeout Issues:** {{TIMEOUT_ISSUES}}
**SLA Requirements:** {{SLA}}

Please provide:
1. Timeout configuration at each layer:
   - Application level
   - Connection pool level
   - Database level
2. Statement timeout implementation
3. Transaction timeout handling
4. Graceful timeout recovery
5. Retry strategies with backoff
6. User feedback during long operations
7. Query cancellation implementation
8. Logging and monitoring timeouts
9. Alternative approaches for long queries
10. Testing timeout scenarios

Or press ⌘C to copy

Variables (5)

Replace these placeholders with your own content before using the prompt.

[{APPLICATION_STACK][{DATABASE_SYSTEM][{QUERY_TYPES][{TIMEOUT_ISSUES][{SLA]

Ready to use?

Copy and paste into your favorite AI tool

Test this prompt live

Try it in our AI Playground with Claude

Open Playground

Explore more Coding prompts

Browse Coding

Command Palette

Search for a command to run...