dbTalk Databases Forums  

Deadlock error

mailing.database.mysql mailing.database.mysql


Discuss Deadlock error in the mailing.database.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Deadlock error - 05-08-2006 , 12:22 AM






Hi,

I am working with an application with a high rate of
inserts/updates/deletes into a particular table, and recently am
getting the following error code. My table uses InnoDB engine.

ERROR 1213 (40001): Deadlock found when trying to get lock; try
restarting transaction

I read the section of MySQL documentation relating to this error and
deadlock detection in particular, but it does not appear to address my
following questions:

(a) Can an INSERT throw this error? Or is it applicable only to UPDATEs
and DELETEs (something about INSERT only locking the row inserted).

(b) Is there any configuration setting that can be tuned to reduce the
chances of this happening? I know I could just retry the transaction,
but the application is pretty realtime and most times these database
calls are fire-and-forget.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.