Serialization retries that still exhaust
For database engineers isolating why transaction retries never converge under contention.
Works with
- Cursor
- GitHub Copilot
The prompt179 words · 4 blanks
What you fill in
- Transaction code
[transaction_code]ExampleRetry wrapper and transaction callback that reads inventory then updates reservations - Database schema
[db_schema]ExamplePostgreSQL tables, indexes, constraints, and relevant triggers - Failure trace
[error_trace]ExampleSQLSTATE 40001 traces with timestamps and attempt numbers - Pool configuration
[pool_config]ExampleMaximum 30 connections, 5-second checkout timeout, transaction isolation serializable
How to use it
- 1Open it in PromptVault. Find it in Coding, or search for “Serialization retries that still exhaust”.
- 2Fill in the 4 blanks. transaction code, database schema, failure trace and pool configuration — the only things the prompt cannot know.
- 3Copy and paste it into Cursor. It also works with GitHub Copilot.
About this prompt
“Serialization retries that still exhaust” is a advanced coding prompt. For database engineers isolating why transaction retries never converge under contention. It is 179 words long and written to get a usable answer on the first message, in Cursor and GitHub Copilot or any other chat assistant. Good for: troubleshooting, sql, debugging, performance and deep dive. Like every prompt in PromptVault, it was written and edited in-house, and it works offline once the app is installed.
