intermediateProduction Engineering

What does "idle in transaction" mean, and why is it dangerous?

A transaction that's open but not actively running a query (e.g. waiting on external I/O) — it still holds locks and an MVCC snapshot the whole time, silently degrading concurrency for other transactions.

Ready to master this question?

Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.

Sign in to generate a response

Next Step

Continue to How would you debug a saga that appears stuck, spanning four microservices?← Back to all Transaction Mastery questions