<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Mysql Replication Adapter</title>
	<atom:link href="http://blog.rapleaf.com/dev/2007/08/12/mysql-replication-adapter/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rapleaf.com/dev/2007/08/12/mysql-replication-adapter/</link>
	<description>For engineers, by engineers.</description>
	<lastBuildDate>Mon, 07 May 2012 08:24:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Joni</title>
		<link>http://blog.rapleaf.com/dev/2007/08/12/mysql-replication-adapter/#comment-5233</link>
		<dc:creator>Joni</dc:creator>
		<pubDate>Thu, 28 Apr 2011 16:16:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rapleaf.com/dev/?p=5#comment-5233</guid>
		<description>Thanks alot - your answer solved all my plrobmes after several days struggling</description>
		<content:encoded><![CDATA[<p>Thanks alot &#8211; your answer solved all my plrobmes after several days struggling</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://blog.rapleaf.com/dev/2007/08/12/mysql-replication-adapter/#comment-262</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Wed, 30 Dec 2009 02:17:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rapleaf.com/dev/?p=5#comment-262</guid>
		<description>FYI:  We recently made the switch to mysql_proxy, and that helped a lot to automatically direct reads/writes to the appropriate database.  

However, race conditions can occur if master-to-slave replication takes too long and you SELECT a recently inserted value.  So I wrote a Rails DB adapter to allowing overriding mysql_proxy by directing queries to named databases, as in:  User.first(:use_db =&gt; :master)

The adapter, mysql_proxy_adapter, can be found here:
http://github.com/findchris/mysql_proxy_adapter/

-Chris
(@findchris)</description>
		<content:encoded><![CDATA[<p>FYI:  We recently made the switch to mysql_proxy, and that helped a lot to automatically direct reads/writes to the appropriate database.  </p>
<p>However, race conditions can occur if master-to-slave replication takes too long and you SELECT a recently inserted value.  So I wrote a Rails DB adapter to allowing overriding mysql_proxy by directing queries to named databases, as in:  User.first(:use_db =&gt; :master)</p>
<p>The adapter, mysql_proxy_adapter, can be found here:<br />
<a href="http://github.com/findchris/mysql_proxy_adapter/" rel="nofollow">http://github.com/findchris/mysql_proxy_adapter/</a></p>
<p>-Chris<br />
(@findchris)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bryan</title>
		<link>http://blog.rapleaf.com/dev/2007/08/12/mysql-replication-adapter/#comment-252</link>
		<dc:creator>bryan</dc:creator>
		<pubDate>Thu, 19 Nov 2009 01:00:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rapleaf.com/dev/?p=5#comment-252</guid>
		<description>You got it. Each subsection should be an independent DB config section.</description>
		<content:encoded><![CDATA[<p>You got it. Each subsection should be an independent DB config section.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: edevre</title>
		<link>http://blog.rapleaf.com/dev/2007/08/12/mysql-replication-adapter/#comment-242</link>
		<dc:creator>edevre</dc:creator>
		<pubDate>Thu, 19 Nov 2009 00:55:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rapleaf.com/dev/?p=5#comment-242</guid>
		<description>How do you set a different name of the database for the slave, do you just add another line database: slavedbname, after the slave decleration?

Thanks in advance</description>
		<content:encoded><![CDATA[<p>How do you set a different name of the database for the slave, do you just add another line database: slavedbname, after the slave decleration?</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xavier Q.</title>
		<link>http://blog.rapleaf.com/dev/2007/08/12/mysql-replication-adapter/#comment-232</link>
		<dc:creator>Xavier Q.</dc:creator>
		<pubDate>Sun, 30 Aug 2009 20:51:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rapleaf.com/dev/?p=5#comment-232</guid>
		<description>Nice write up...usually I never reply to these thing but this time I will,Thanks for the great info.</description>
		<content:encoded><![CDATA[<p>Nice write up&#8230;usually I never reply to these thing but this time I will,Thanks for the great info.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FoundChris &#187; Blog Archive &#187; Rails plugin mysql_replication_adapter for Rails 2.2+</title>
		<link>http://blog.rapleaf.com/dev/2007/08/12/mysql-replication-adapter/#comment-222</link>
		<dc:creator>FoundChris &#187; Blog Archive &#187; Rails plugin mysql_replication_adapter for Rails 2.2+</dc:creator>
		<pubDate>Fri, 13 Feb 2009 03:20:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rapleaf.com/dev/?p=5#comment-222</guid>
		<description>[...] original mysql_replication_adapter was first made available by RapLeaf.  It was a gem that was released in mid-2007 and hosted on [...] </description>
		<content:encoded><![CDATA[<p>[...] original mysql_replication_adapter was first made available by RapLeaf.  It was a gem that was released in mid-2007 and hosted on [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: findchris</title>
		<link>http://blog.rapleaf.com/dev/2007/08/12/mysql-replication-adapter/#comment-212</link>
		<dc:creator>findchris</dc:creator>
		<pubDate>Fri, 13 Feb 2009 02:00:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rapleaf.com/dev/?p=5#comment-212</guid>
		<description>FYI, I took this gem and updated it so that it&#039;s compatible with Rails 2.2.2 (as a plugin).

You can find it here:
http://github.com/findchris/mysql_replication_adapter/tree/master

-Chris</description>
		<content:encoded><![CDATA[<p>FYI, I took this gem and updated it so that it&#8217;s compatible with Rails 2.2.2 (as a plugin).</p>
<p>You can find it here:<br />
<a href="http://github.com/findchris/mysql_replication_adapter/tree/master" rel="nofollow">http://github.com/findchris/mysql_replication_adapter/tree/master</a></p>
<p>-Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://blog.rapleaf.com/dev/2007/08/12/mysql-replication-adapter/#comment-202</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Tue, 09 Sep 2008 23:52:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rapleaf.com/dev/?p=5#comment-202</guid>
		<description>any updates to the gem to get it working with Rails 2+?

thanks!</description>
		<content:encoded><![CDATA[<p>any updates to the gem to get it working with Rails 2+?</p>
<p>thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Martin</title>
		<link>http://blog.rapleaf.com/dev/2007/08/12/mysql-replication-adapter/#comment-192</link>
		<dc:creator>Josh Martin</dc:creator>
		<pubDate>Tue, 27 May 2008 18:42:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rapleaf.com/dev/?p=5#comment-192</guid>
		<description>I recently found this rewrite (as a plugin) that works with 2.0.2

http://rubyforge.org/tracker/index.php?func=detail&amp;aid=20068&amp;group_id=4116&amp;atid=15778</description>
		<content:encoded><![CDATA[<p>I recently found this rewrite (as a plugin) that works with 2.0.2</p>
<p><a href="http://rubyforge.org/tracker/index.php?func=detail&#038;aid=20068&#038;group_id=4116&#038;atid=15778" rel="nofollow">http://rubyforge.org/tracker/index.php?func=detail&#038;aid=20068&#038;group_id=4116&#038;atid=15778</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eunha</title>
		<link>http://blog.rapleaf.com/dev/2007/08/12/mysql-replication-adapter/#comment-182</link>
		<dc:creator>Eunha</dc:creator>
		<pubDate>Tue, 27 May 2008 07:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rapleaf.com/dev/?p=5#comment-182</guid>
		<description>I have problem with setting this adapter.
Currently I am developing in windowXP using rails2.0.2.  After I add require line in my environment.rb and restart my server, I got All this message.

Exiting
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:266:in `load_missing_constant&#039;: uninitialized constant RAILS_CONNECTION_ADAPTERS (NameError)
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in `const_missing&#039;
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:465:in `const_missing&#039;
	from c:/ruby/lib/ruby/gems/1.8/gems/mysql_replication_adapter-0.4.0/lib/mysql_replication_adapter.rb:8
	from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require&#039;
	from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require&#039;
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require&#039;
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in&#039;
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require&#039;
	 ... 29 levels...
	from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require&#039;
	from ./script/server:3
	from -e:2:in `load&#039;
	from -e:2

Do you have any idea what&#039;s wrong with my setting ?</description>
		<content:encoded><![CDATA[<p>I have problem with setting this adapter.<br />
Currently I am developing in windowXP using rails2.0.2.  After I add require line in my environment.rb and restart my server, I got All this message.</p>
<p>Exiting<br />
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:266:in `load_missing_constant&#8217;: uninitialized constant RAILS_CONNECTION_ADAPTERS (NameError)<br />
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in `const_missing&#8217;<br />
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:465:in `const_missing&#8217;<br />
	from c:/ruby/lib/ruby/gems/1.8/gems/mysql_replication_adapter-0.4.0/lib/mysql_replication_adapter.rb:8<br />
	from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require&#8217;<br />
	from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require&#8217;<br />
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require&#8217;<br />
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in&#8217;<br />
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require&#8217;<br />
	 &#8230; 29 levels&#8230;<br />
	from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require&#8217;<br />
	from ./script/server:3<br />
	from -e:2:in `load&#8217;<br />
	from -e:2</p>
<p>Do you have any idea what&#8217;s wrong with my setting ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

