Skip to content

UJET fork of mperham/deadlock_retry

License

Notifications You must be signed in to change notification settings

UJET/deadlock_retry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

= Deadlock Retry

Deadlock retry allows the database adapter (currently only tested with the
MySQLAdapter) to retry transactions that fall into deadlock. It will retry
such transactions three times before finally failing.

This capability is automatically added to ActiveRecord. No code changes or otherwise are required.

== Installation

Add it to your Rails application by installing the gem:

  gem install deadlock_retry

and including a reference to it in your application's Gemfile:

  gem 'deadlock_retry'