Re: [Haskell-cafe] Database connection pool

2010-05-07 Thread Michael Snoyman
On Fri, May 7, 2010 at 1:02 AM, Bas van Dijk v.dijk@gmail.com wrote: On Thu, May 6, 2010 at 11:54 PM, Bas van Dijk v.dijk@gmail.com wrote: On Thu, May 6, 2010 at 7:48 PM, Bas van Dijk v.dijk@gmail.com wrote: On Thu, May 6, 2010 at 3:24 PM, Michael Snoyman mich...@snoyman.com

Re: [Haskell-cafe] Database connection pool

2010-05-06 Thread Bryan O'Sullivan
On Wed, May 5, 2010 at 10:51 PM, Michael Snoyman mich...@snoyman.comwrote: * When a connection is released, is goes to the end of the pool, so connections get used evenly (not sure if this actually matters in practice). In practice, you're better off letting idle connections stay that way,

Re: [Haskell-cafe] Database connection pool

2010-05-06 Thread Michael Snoyman
On Thu, May 6, 2010 at 9:13 AM, Bryan O'Sullivan b...@serpentine.com wrote: On Wed, May 5, 2010 at 10:51 PM, Michael Snoyman mich...@snoyman.comwrote: * When a connection is released, is goes to the end of the pool, so connections get used evenly (not sure if this actually matters in

Re: [Haskell-cafe] Database connection pool

2010-05-06 Thread Bas van Dijk
On Thu, May 6, 2010 at 3:24 PM, Michael Snoyman mich...@snoyman.com wrote: On Thu, May 6, 2010 at 9:13 AM, Bryan O'Sullivan b...@serpentine.com wrote: On Wed, May 5, 2010 at 10:51 PM, Michael Snoyman mich...@snoyman.com wrote: * When a connection is released, is goes to the end of the

Re: [Haskell-cafe] Database connection pool

2010-05-06 Thread Bas van Dijk
On Thu, May 6, 2010 at 3:24 PM, Michael Snoyman mich...@snoyman.com wrote: On Thu, May 6, 2010 at 9:13 AM, Bryan O'Sullivan b...@serpentine.com wrote: On Wed, May 5, 2010 at 10:51 PM, Michael Snoyman mich...@snoyman.com wrote: * When a connection is released, is goes to the end of the

Re: [Haskell-cafe] Database connection pool

2010-05-06 Thread Bas van Dijk
On Thu, May 6, 2010 at 7:48 PM, Bas van Dijk v.dijk@gmail.com wrote: On Thu, May 6, 2010 at 3:24 PM, Michael Snoyman mich...@snoyman.com wrote: On Thu, May 6, 2010 at 9:13 AM, Bryan O'Sullivan b...@serpentine.com wrote: On Wed, May 5, 2010 at 10:51 PM, Michael Snoyman mich...@snoyman.com

Re: [Haskell-cafe] Database connection pool

2010-05-06 Thread Bas van Dijk
On Thu, May 6, 2010 at 11:54 PM, Bas van Dijk v.dijk@gmail.com wrote: On Thu, May 6, 2010 at 7:48 PM, Bas van Dijk v.dijk@gmail.com wrote: On Thu, May 6, 2010 at 3:24 PM, Michael Snoyman mich...@snoyman.com wrote: On Thu, May 6, 2010 at 9:13 AM, Bryan O'Sullivan b...@serpentine.com

[Haskell-cafe] Database connection pool

2010-05-05 Thread Michael Snoyman
Hi all, I would like to pool my database connections in an application I'm writing, and so far haven't found any prior art on the subject (besides this[1]). I was wondering if: * There's a package somewhere that does this * Others have implemented it and have suggestions * There's some big