<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Multiple DB connections in Rails/ActiveRecord</title>
	<atom:link href="http://blog.vishnugopal.com/2008/01/12/multiple-db-connections-in-railsactiverecord/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.vishnugopal.com/2008/01/12/multiple-db-connections-in-railsactiverecord/</link>
	<description>blog.vishnugopal.com</description>
	<lastBuildDate>Mon, 25 Jan 2010 17:32:13 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: vishnu</title>
		<link>http://blog.vishnugopal.com/2008/01/12/multiple-db-connections-in-railsactiverecord/#comment-803</link>
		<dc:creator>vishnu</dc:creator>
		<pubDate>Sat, 12 Jan 2008 17:22:33 +0000</pubDate>
		<guid isPermaLink="false">http://vysnu.com/log/2008/01/12/multiple-db-connections-in-railsactiverecord.html#comment-803</guid>
		<description>ActiveRecord/Ruby afaik by default maintains (persists) a single connection for a thread and across all statements executed by that thread (at least for the MySQL driver).

Multiple threads have their own connections. You have to go through a non-trivial process to make multiple threads share a connection but this is often a non-issue since Ruby/Rails doesn&#039;t have that many threads for any deployment.</description>
		<content:encoded><![CDATA[<p>ActiveRecord/Ruby afaik by default maintains (persists) a single connection for a thread and across all statements executed by that thread (at least for the MySQL driver).</p>
<p>Multiple threads have their own connections. You have to go through a non-trivial process to make multiple threads share a connection but this is often a non-issue since Ruby/Rails doesn&#8217;t have that many threads for any deployment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Overclocked Fragger</title>
		<link>http://blog.vishnugopal.com/2008/01/12/multiple-db-connections-in-railsactiverecord/#comment-802</link>
		<dc:creator>The Overclocked Fragger</dc:creator>
		<pubDate>Sat, 12 Jan 2008 12:16:32 +0000</pubDate>
		<guid isPermaLink="false">http://vysnu.com/log/2008/01/12/multiple-db-connections-in-railsactiverecord.html#comment-802</guid>
		<description>Finally, a code snippet on your site which I can understand atleast partially! :D

AR sounds very similar to ADO&#039;s recordsets.

Got some doubts here.

Lets take the case where we are connecting to an Oracle database, which doesn&#039;t like multiple connections, due to max load reasons.

Does AR connect and disconnect for every .execute instance?

Or is it possible to maintain a single connection throughout the time during which we use the client app? Thats a standard we follow while doing ADO in VB/.Net.</description>
		<content:encoded><![CDATA[<p>Finally, a code snippet on your site which I can understand atleast partially! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>AR sounds very similar to ADO&#8217;s recordsets.</p>
<p>Got some doubts here.</p>
<p>Lets take the case where we are connecting to an Oracle database, which doesn&#8217;t like multiple connections, due to max load reasons.</p>
<p>Does AR connect and disconnect for every .execute instance?</p>
<p>Or is it possible to maintain a single connection throughout the time during which we use the client app? Thats a standard we follow while doing ADO in VB/.Net.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
