title: Rails: How to split write/read query across master/slave database
body: <p>My website has a very heavy read traffic. A lot heavier than write traffic.</p>
  
  <p>To improve the performance of my website I have thought of going with <strong>master/slave</strong> database configuration.</p>
  
  <p>The <code>octupus gem</code> seems to provide what I want, but since my app is huge I can't go though a millions of source code line to change the query distribution(sending read query to slave server and write query to master server).</p>
  
  <p><code>MySQL Proxy</code> seems to be a great way to resolve this issue but since it is in alpha version I don't want to use it.</p>
  
  <p>So my question is what is the best way to split read/write queries across <strong>master/slave</strong> server?</p>
  
  <p>Is it possible to split read/write query without using any gems in rails?</p>