DBD::mysql::st execute failed: Deadlock found when trying to getlock;

DBD::mysql::st execute failed: Deadlock found when trying to getlock;

am 18.04.2004 20:42:25 von Mayuran

After testing one of my scripts on production servers (quad xeon's, 4
3ghz cpu x 2),
we noticed that the script was taking too long when doing DB
transactions. So my
boss asked me to rewrite the db part, to have many children updating the
DB instead
of 1 parent. He thought this would make things faster and make more use
of the
massive hardware. After i rewrote the code I ran into this problem:

DBD::mysql::st execute failed: Deadlock found when trying to get lock;
Try restarting transaction.

There are 8 tables in total, but i made it so they only update 1 to try
and narrow the problem
down. There are 2 children currently updating the same table, and they
are NOT updating the same
rows using the same keys. In other words, no two children ever
update/insert the same data. Can
anyone shed some light on this matter, I have never ran into deadlocks
before. Maybe the logic I
am using is wrong or something. Any input would be appreciated.

Thanks.



--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org