Welcome Guest, Not a member yet? Register   Sign In
How to cope with deadlocks?
#3

[eluser]Otemu[/eluser]
Hi,

"Use SHOW ENGINE INNODB STATUS to determine the cause of the latest deadlock" Have you tried this? Maybe you can see the cause and modify your queries.

"Always be prepared to re-issue a transaction if it fails due to deadlock" - A loop would help here as Rana said above, maybe set a delay for each loop to give a chance that maybe another lock will become free and the query may now execute.

"try using a lower isolation level such as READ COMMITTED" - Have you tried this and seen the effect run SET TRANSACTION ISOLATION LEVEL READ COMMITTED;

if nothing else helps, serialize your transactions with table-level locks. - have you tried this?



Messages In This Thread
How to cope with deadlocks? - by El Forum - 02-10-2013, 09:32 AM
How to cope with deadlocks? - by El Forum - 02-11-2013, 04:22 AM
How to cope with deadlocks? - by El Forum - 02-11-2013, 04:55 AM
How to cope with deadlocks? - by El Forum - 02-11-2013, 11:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB