Browse the Ruby on Rails Community.

You are here: Browse Railsplugins Masochism

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.

  1. config/database.yml login: &login adapter: postgresql host: localhost port: 5432
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

Users


See all details


Membership

+ Join this railsplugin

Record Maintainer

'None'