Created
March 28, 2014 21:53
-
-
Save gworley3/9843765 to your computer and use it in GitHub Desktop.
DbCharmer - Getting Started - sample_slave_use.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DbCharmer.force_slave_reads do | |
| # all read operations againt ActiveRecord objects will now | |
| # go against the read slaves. this extends to calls on | |
| # ActiveRecord objects in nested function calls. | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment