You are here: Browse Railsplugins Masochism
The masochism plugin provides an easy solution for Ruby on Rails applications to work in a replicated database environment. Connection proxy sends some database queries (those in a transaction, update statements, and ActiveRecord::Base#reload) to a master database, and the rest to the slave database.
The ActiveReload::MasterDatabase model uses a ‘master_database’ setting in database.yml to serve as the master database.
production:
database: slave_database_name
<<:><<:>bq. NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly