How do you prevent Deadlocks
From: <djharr_at_ccmail.monsanto.com>
Date: Fri, 4 Nov 1994 22:56:02 GMT
Message-ID: <1994Nov4.205358.6790_at_tin.monsanto.com>
Date: Fri, 4 Nov 1994 22:56:02 GMT
Message-ID: <1994Nov4.205358.6790_at_tin.monsanto.com>
Fortunately, we do have transaction designs, and the transactions involved in the deadlocking are large and complex (40 to 50 tables involved, with 10 to 15 insertes,deletes, or updates throughout the transaction). In addition, each transaction must remain as 1 logical unit of work to insure business rules are preserved.
We DO understand:
- What is a deadlock, and how one is created.
- If you single-thread the users through the application, deadlocks will go away. However, this is usually not very desirable.
What we are having difficulty with:
- What is the most likely reason for deadlocks? Is it the application's transaction design? If so, why? Is it the database's design? If so, why? Is it both? If so, why? Are we missing the boat?
- Based on the answer from question 1, how do you change, or what is a methodology one can use to fix the affected "object(s)" in order to prevent the deadlocks?
Thank you for your feedback!!!
David Harrier
Monsanto Agricultural Group
djharr_at_ccmail.monsanto.com
Received on Fri Nov 04 1994 - 23:56:02 CET