Robby on Rails: A PostgreSQL tipthoughts.sort_by{|t| t[:topic]}.collect tag:www.robbyonrails.com,2005:TypoTypo2006-09-05T22:12:47-04:00Robby Russellurn:uuid:43e51e300ec32450ac48111ebf90fb822005-10-05T01:07:00-04:002006-09-05T22:12:47-04:00A PostgreSQL tip<p><em>I promised that I would send a link out or something… so here goes.</em></p>
<p>Tonight at the Portland Ruby Brigade meeting, the question about having Active Record <span class="caps">READ</span> from one database and <span class="caps">WRITE</span> to another database was brought up. The discussion was going in the route of, “How can we make AR do this?”</p>
<p>I chimed in with my usual PostgreSQL bias. “pgpool.”</p>
<p>Let something else handle this. Infact, with PgPool, you don’t have to change any code in your Rails application to make this work. :-)</p>
<p>So, take a look at: <a href="http://pgpool.projects.postgresql.org">pgpool</a></p>
<p>Enjoy!</p><p><em>I promised that I would send a link out or something… so here goes.</em></p>
<p>Tonight at the Portland Ruby Brigade meeting, the question about having Active Record <span class="caps">READ</span> from one database and <span class="caps">WRITE</span> to another database was brought up. The discussion was going in the route of, “How can we make AR do this?”</p>
<p>I chimed in with my usual PostgreSQL bias. “pgpool.”</p>
<p>Let something else handle this. Infact, with PgPool, you don’t have to change any code in your Rails application to make this work. :-)</p>
<p>So, take a look at: <a href="http://pgpool.projects.postgresql.org">pgpool</a></p>
<p>Enjoy!</p>