Re: Connection pooling branch ready for testing

Nick Sieger
Mon, 11 Aug 2008 22:16:57 -0000

On Aug 11, 2008, at 4:19 PM, Joshua Peek wrote:

> Seems to work well, I did some silly app testing myself with ruby and
> jruby.
>
> +1 to removing AR allow_concurrency
>
> Just curious what the difference is between the old cached connection
> pool and the fixed size? Is the cached connection pool different that
> just configuring the pool size to 1?

If you only ever receive requests on a single thread, there''s no
difference between that and a connection pool of size 1. But if you
ever do any multiple-thread access of connections, you have the
potential to create a lot of new connections and/or leak connections
(if you don''t call verify_active_connections! periodically). With
connection pools, you can be assured that you limit the number of
connection resources you use.

/Nick