<?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: JDBC Connection Pooling for Rails on Glassfish</title>
	<atom:link href="http://blog.linkedin.com/2008/08/19/jdbc-connection-pooling-for-rails-on-glassfish/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.linkedin.com/2008/08/19/jdbc-connection-pooling-for-rails-on-glassfish/</link>
	<description>The corporate blog of LinkedIn, the world's largest professional networking site.</description>
	<lastBuildDate>Sat, 12 Dec 2009 02:37:13 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Steve G</title>
		<link>http://blog.linkedin.com/2008/08/19/jdbc-connection-pooling-for-rails-on-glassfish/#comment-11382</link>
		<dc:creator>Steve G</dc:creator>
		<pubDate>Thu, 24 Sep 2009 20:49:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.linkedin.com/2008/08/19/jdbc-connection-pooling-for-rails-on-glassfish/#comment-11382</guid>
		<description>FYI, for Rails 2.3.3 we had to change the initializer to use the clear_reloadable_connections! method instead of clear_active_connections!

ActionController::Dispatcher.after_dispatch do
    ActiveRecord::Base.clear_reloadable_connections!
end</description>
		<content:encoded><![CDATA[<p>FYI, for Rails 2.3.3 we had to change the initializer to use the clear_reloadable_connections! method instead of clear_active_connections!</p>
<p>ActionController::Dispatcher.after_dispatch do<br />
    ActiveRecord::Base.clear_reloadable_connections!<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrea Minard</title>
		<link>http://blog.linkedin.com/2008/08/19/jdbc-connection-pooling-for-rails-on-glassfish/#comment-6070</link>
		<dc:creator>Andrea Minard</dc:creator>
		<pubDate>Thu, 22 Jan 2009 15:28:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.linkedin.com/2008/08/19/jdbc-connection-pooling-for-rails-on-glassfish/#comment-6070</guid>
		<description>Hello,

I am a recruiter employed with Follett Software Company and Follett Digital Resources http://www.fdr.follett.com (both educational technology businesses) in the Chicago, IL area.  We are currently seeking a full time or contract-to-hire Senior PHP/Ruby on Rails developer due to the growth of our business.  I have tried many sourcing/networking options to find this type of talented candidate, but it has been difficult.  Do you have any ideas?  We are willing to assist in relocating  the selected candidate.  Here is a link to the position.  Any ideas would be greatly appreciated.  Thank you.

http://www.follett.com/careers/showjobdesc.cfm?jobid=7363


Andrea Minard
Senior Recruiter</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I am a recruiter employed with Follett Software Company and Follett Digital Resources <a href="http://www.fdr.follett.com" rel="nofollow">http://www.fdr.follett.com</a> (both educational technology businesses) in the Chicago, IL area.  We are currently seeking a full time or contract-to-hire Senior PHP/Ruby on Rails developer due to the growth of our business.  I have tried many sourcing/networking options to find this type of talented candidate, but it has been difficult.  Do you have any ideas?  We are willing to assist in relocating  the selected candidate.  Here is a link to the position.  Any ideas would be greatly appreciated.  Thank you.</p>
<p><a href="http://www.follett.com/careers/showjobdesc.cfm?jobid=7363" rel="nofollow">http://www.follett.com/careers/showjobdesc.cfm?jobid=7363</a></p>
<p>Andrea Minard<br />
Senior Recruiter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David P</title>
		<link>http://blog.linkedin.com/2008/08/19/jdbc-connection-pooling-for-rails-on-glassfish/#comment-2608</link>
		<dc:creator>David P</dc:creator>
		<pubDate>Tue, 16 Sep 2008 20:40:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.linkedin.com/2008/08/19/jdbc-connection-pooling-for-rails-on-glassfish/#comment-2608</guid>
		<description>Hi,

Is what are the performance difference between running a Rails app in Tomcat vs Glasshfish ?  We are looking to deploy our first app under JRuby.  I think that Glassfish would be a better solution, but I need &quot;proof&quot; :)
</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Is what are the performance difference between running a Rails app in Tomcat vs Glasshfish ?  We are looking to deploy our first app under JRuby.  I think that Glassfish would be a better solution, but I need &#8220;proof&#8221; :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gregory</title>
		<link>http://blog.linkedin.com/2008/08/19/jdbc-connection-pooling-for-rails-on-glassfish/#comment-2607</link>
		<dc:creator>Gregory</dc:creator>
		<pubDate>Thu, 28 Aug 2008 21:51:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.linkedin.com/2008/08/19/jdbc-connection-pooling-for-rails-on-glassfish/#comment-2607</guid>
		<description>Ikai,

Have you experimented with dedicating a DB connection to each JRuby instance, with no connection pooling at all? Assuming you periodically cycle the JRuby instances, and thus, periodically cycle your DB connections, it seems to me that you would get all of the same benefits. Or is it the case that DB connections need to be dropped and recreated more or less frequently than JRuby instances?
</description>
		<content:encoded><![CDATA[<p>Ikai,</p>
<p>Have you experimented with dedicating a DB connection to each JRuby instance, with no connection pooling at all? Assuming you periodically cycle the JRuby instances, and thus, periodically cycle your DB connections, it seems to me that you would get all of the same benefits. Or is it the case that DB connections need to be dropped and recreated more or less frequently than JRuby instances?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TUDBC</title>
		<link>http://blog.linkedin.com/2008/08/19/jdbc-connection-pooling-for-rails-on-glassfish/#comment-2606</link>
		<dc:creator>TUDBC</dc:creator>
		<pubDate>Thu, 28 Aug 2008 00:26:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.linkedin.com/2008/08/19/jdbc-connection-pooling-for-rails-on-glassfish/#comment-2606</guid>
		<description>I ran a test which shows Java&#039;s native connection pooling performance improvement varies (SQLServer improves +183% and MysQL only +24%) and it is actually not great at all compared to other pooling libraries. You can look at the stats on http://www.tudbc.org/performanceforwebapp
</description>
		<content:encoded><![CDATA[<p>I ran a test which shows Java&#8217;s native connection pooling performance improvement varies (SQLServer improves +183% and MysQL only +24%) and it is actually not great at all compared to other pooling libraries. You can look at the stats on <a href="http://www.tudbc.org/performanceforwebapp" rel="nofollow">http://www.tudbc.org/performanceforwebapp</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://blog.linkedin.com/2008/08/19/jdbc-connection-pooling-for-rails-on-glassfish/#comment-2605</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Thu, 21 Aug 2008 11:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.linkedin.com/2008/08/19/jdbc-connection-pooling-for-rails-on-glassfish/#comment-2605</guid>
		<description>Thanks Ikai.

This post helps as well:

http://blog.headius.com/2008/08/qa-what-thread-safe-rails-means.html

&quot;In a typical Mongrel setup, handling 10 concurrent requests means you have to have 10 copies of Rails loaded, 10 copies of your application loaded, 10 in-memory data caches, 10 database connections...everything has to be scaled in lock step for every additional request you want to handle concurrently.&quot;
</description>
		<content:encoded><![CDATA[<p>Thanks Ikai.</p>
<p>This post helps as well:</p>
<p><a href="http://blog.headius.com/2008/08/qa-what-thread-safe-rails-means.html" rel="nofollow">http://blog.headius.com/2008/08/qa-what-thread-safe-rails-means.html</a></p>
<p>&#8220;In a typical Mongrel setup, handling 10 concurrent requests means you have to have 10 copies of Rails loaded, 10 copies of your application loaded, 10 in-memory data caches, 10 database connections&#8230;everything has to be scaled in lock step for every additional request you want to handle concurrently.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ikai Lan</title>
		<link>http://blog.linkedin.com/2008/08/19/jdbc-connection-pooling-for-rails-on-glassfish/#comment-2604</link>
		<dc:creator>Ikai Lan</dc:creator>
		<pubDate>Thu, 21 Aug 2008 00:33:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.linkedin.com/2008/08/19/jdbc-connection-pooling-for-rails-on-glassfish/#comment-2604</guid>
		<description>Tom,

The connection is established by ActiveRecord::Base when the server boots up (railties/lib/initializers.rb). The connection itself can be retrieved with ActiveRecord::Base.connection. In the initialization step, the appropriate ActiveRecord adapter is loaded. In this example, the adapter is the JDBC adapter.

The reason Rails does not natively support connection pooling is because Rails is single-threaded, and therefore only really needs one connection per database. If each process has only one connection, there&#039;s no need for a pool. In the example above, multiple separate Rails instances run inside a Glassfish container. Without connection pooling, N instances would create N connections.

Rails 2.2 is going to be interesting. The big feature coming is threaded Rails. I&#039;ve heard talk of building connection pool management directly into Rails. I&#039;m curious to see how this will play out with regards to JDBC pooling.
</description>
		<content:encoded><![CDATA[<p>Tom,</p>
<p>The connection is established by ActiveRecord::Base when the server boots up (railties/lib/initializers.rb). The connection itself can be retrieved with ActiveRecord::Base.connection. In the initialization step, the appropriate ActiveRecord adapter is loaded. In this example, the adapter is the JDBC adapter.</p>
<p>The reason Rails does not natively support connection pooling is because Rails is single-threaded, and therefore only really needs one connection per database. If each process has only one connection, there&#8217;s no need for a pool. In the example above, multiple separate Rails instances run inside a Glassfish container. Without connection pooling, N instances would create N connections.</p>
<p>Rails 2.2 is going to be interesting. The big feature coming is threaded Rails. I&#8217;ve heard talk of building connection pool management directly into Rails. I&#8217;m curious to see how this will play out with regards to JDBC pooling.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://blog.linkedin.com/2008/08/19/jdbc-connection-pooling-for-rails-on-glassfish/#comment-2603</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Thu, 21 Aug 2008 00:02:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.linkedin.com/2008/08/19/jdbc-connection-pooling-for-rails-on-glassfish/#comment-2603</guid>
		<description>I don&#039;t understand why connection pooling is not an issue with Rails.  I&#039;ve searched the web and haven&#039;t found a good answer.  It appears an action controller keeps the connection active (unless you supply the code mentioned above).  But where does the action controller initially get the connection?  From a pool? or straight from the database?
</description>
		<content:encoded><![CDATA[<p>I don&#8217;t understand why connection pooling is not an issue with Rails.  I&#8217;ve searched the web and haven&#8217;t found a good answer.  It appears an action controller keeps the connection active (unless you supply the code mentioned above).  But where does the action controller initially get the connection?  From a pool? or straight from the database?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Guan</title>
		<link>http://blog.linkedin.com/2008/08/19/jdbc-connection-pooling-for-rails-on-glassfish/#comment-2602</link>
		<dc:creator>Brian Guan</dc:creator>
		<pubDate>Wed, 20 Aug 2008 20:23:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.linkedin.com/2008/08/19/jdbc-connection-pooling-for-rails-on-glassfish/#comment-2602</guid>
		<description>Thanks Ikai.

Hi Loc, my group is definitely hiring.  Check out this link:

&lt;a href=&quot;http://www.linkedin.com/jobs?viewJob=&amp;jobId=595885&quot; rel=&quot;nofollow&quot;&gt;http://www.linkedin.com/jobs?viewJob=&amp;jobId=595885&lt;/a&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks Ikai.</p>
<p>Hi Loc, my group is definitely hiring.  Check out this link:</p>
<p><a href="http://www.linkedin.com/jobs?viewJob=&amp;jobId=595885" rel="nofollow">http://www.linkedin.com/jobs?viewJob=&amp;jobId=595885</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ikai Lan</title>
		<link>http://blog.linkedin.com/2008/08/19/jdbc-connection-pooling-for-rails-on-glassfish/#comment-2601</link>
		<dc:creator>Ikai Lan</dc:creator>
		<pubDate>Wed, 20 Aug 2008 18:12:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.linkedin.com/2008/08/19/jdbc-connection-pooling-for-rails-on-glassfish/#comment-2601</guid>
		<description>Hi Loc, we&#039;ve just filled out LED for the near future - but we&#039;re always looking for great talent for our engineering division. The closest team to LED is probably Team Money, who works a lot with Groovy on Grails, an interesting relative of Ruby on Rails.

If you&#039;re interested in looking at our available engineering positions, you can &lt;a href=&quot;http://www.linkedin.com/static?key=jobs_open&quot; rel=&quot;nofollow&quot;&gt;find them here&lt;/a&gt;. I&#039;m happy to report that LinkedIn Engineering is one of those places that lives on the cutting edge. If you like diving into new technologies to complement the proven ones, you&#039;ll be up to your neck in them here.
</description>
		<content:encoded><![CDATA[<p>Hi Loc, we&#8217;ve just filled out LED for the near future &#8211; but we&#8217;re always looking for great talent for our engineering division. The closest team to LED is probably Team Money, who works a lot with Groovy on Grails, an interesting relative of Ruby on Rails.</p>
<p>If you&#8217;re interested in looking at our available engineering positions, you can <a href="http://www.linkedin.com/static?key=jobs_open" rel="nofollow">find them here</a>. I&#8217;m happy to report that LinkedIn Engineering is one of those places that lives on the cutting edge. If you like diving into new technologies to complement the proven ones, you&#8217;ll be up to your neck in them here.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
