[Mongrel] Threading & database connections.

Jeff Jones jjones at raindrop.co.uk
Wed Mar 1 17:37:28 EST 2006

Hi Michael and Zed.

Thank you for all the help. I actually read that thread a few days ago
but the significance of it didn't dawn on me. I will try the
allow_concurrency change and see if there is an obvious performance

Thanks for the help.


-----Original Message-----
From: mongrel-users-bounces at rubyforge.org
[mailto:mongrel-users-bounces at rubyforge.org] On Behalf Of Michael Schoen
Sent: 01 March 2006 20:41
To: mongrel-users at rubyforge.org
Subject: Re: [Mongrel] Threading & database connections.

zedshaw at zedshaw.com wrote:
> 2)  Add ActiveRecord.threaded_connections = false to your 
> environment.rb
> What #2 does is tells AR to make one connection and always use that.
> I may just add an option to mongrel_rails that sets this for you since

> people keep asking about it.

There's a thread on rails-core about this now, and in the ticket
referenced below. That config is now called "allow_concurrency" (set to
false), and is supposed to be set in environment.rb.


Mongrel-users mailing list
Mongrel-users at rubyforge.org

More information about the Mongrel-users mailing list