RubyFlow The Ruby and Rails community linklog

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in