morganick
unread,Dec 15, 2010, 7:46:07 PM12/15/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Authlogic
Randomly I will get the following error from activerecord:
ActiveRecord::StatementInvalid: Mysql::Error: Lock wait timeout
exceeded; try restarting transaction
This is happening when the update is called on the users table to
update the perishable token and updated_at fields. However, the only
thing in the transaction is this update. I currently have indexes on
the primary key, username, persistance token, and last_request_at.
( Seemed like what was recommended looking through your examples.) As
far as I know I am optimized enough to only have single row locking
for that table.
Have any suggestions?
-- Nick