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

Jeremy Kemper
Thu, 13 Jul 2006 19:57:46 -0000

On Jul 13, 2006, at 10:15 AM, Isak Hansen wrote:
> I''m not sure introducing concurrency will boost your insert rate
> all that much.
>
> I whipped up a small test to check, but even with
> AR::Base.allow_concurrency set to true it seems my db access is still
> serialized. 10 connections are opened all right, but 9 are idle
> whenever i check db stats.
>
> Any thoughts? - Source at <http://pastebin.ca/87122>

The postgres and oracle adapters on edge rails use nonblocking query
methods when allow_concurrency is set. Could you rake
rails:freeze:edge and try with postgres?

jeremy