A deadlock occurs when two or more tasks permanently block each other by each task having a lock on a resource that the other tasks are trying to lock . For example: Transaction A acquires a shared lock on row 1. Transaction B acquires a shared lock
My question here is - what's the best practice to avoid deadlocks here? I could avoid the Exception by making the SELECT part of the transaction or by setting ...