dbTalk Databases Forums  

Transaction Deadlocks

mailing.database.myodbc mailing.database.myodbc


Discuss Transaction Deadlocks in the mailing.database.myodbc forum.



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

Default Transaction Deadlocks - 12-01-2004 , 08:49 PM






Howdy all,

I've got a series of tables that are used to store a
user's session information. The main table is a very
simple table that stores a GUID and a last access
data-time value. All other tables use the guid as a FK
back to this main table.

The main table's schema is as follows:

CREATE TABLE s_session (
session_guid varchar(36) NOT NULL default '',
last_access_dt datetime NOT NULL default '0000-00-00
00:00:00',
PRIMARY KEY (session_guid)
) TYPE=InnoDB;

What we're seeing is that we get trx deadlocks when
trying to delete rows and occasionally when simply
updating a row (for example, when updating the
last_access_dt when the user moves to a new page in
the app).

Is there any reason that using a GUID as the PK would
cause problems? It seems not, but I really can't
figure out why I would be getting deadlocks. I'm
causing these in a development environment where I'm
the only user!

BTW, I'm using mySQL 4.0.20 on Mac OS X.

Cheers,

Tripp



__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=m...ie.nctu.edu.tw


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.