What is a database deadlock?hard
Answer
A deadlock happens when transactions wait on each other in a cycle, so none can continue.
Explanation
Databases usually detect deadlocks and abort one transaction. Consistent lock ordering, shorter transactions, and retry logic reduce deadlock impact.
Follow-upHow should an application handle a deadlock error?