[Rails] Re: Re: Database Concurrency Without a Web Server?

Ezra Zygmuntowicz
Wed, 12 Jul 2006 19:09:48 -0000

On Jul 12, 2006, at 11:57 AM, Don Stocks wrote:

> Don Stocks wrote:
>
>> Is there no way to get script/runner to use db connection pooling?
>>
>
> Actually you gave me a hint Ezra.  I''ll try
>
>   ActiveRecord::Base.allow_concurrency = true
>
> and see what results I get.
>
>  - Don


Don-

	Be very carefull with that setting. You do not want your main rails
app running with that setting sewt to true or you will have major
problems. When you use ActiveRecord by itself then you can
allow_concurrency. But if you try to do that in a rails app the whole
combination of AR action controller and action view is not thread
safe and you will not want to run things that way. So you should make
your script run with that setting but not your rails app.

Cheers-
-Ezra