Using Replica database with your ActiveRecord models
Sometimes you may need to access not only your live production Database but also replica - for example, to lower down the CPU load on main DB. How to do it? How to keep the model in sync with the main model and prevent writes to it? I explained it in this blog post on Medium.
Post a comment