Re: [Haskell-cafe] Database connection pool

2010-05-07 Thread Michael Snoyman
On Fri, May 7, 2010 at 1:02 AM, Bas van Dijk wrote: > On Thu, May 6, 2010 at 11:54 PM, Bas van Dijk > wrote: > > On Thu, May 6, 2010 at 7:48 PM, Bas van Dijk > wrote: > >> On Thu, May 6, 2010 at 3:24 PM, Michael Snoyman > wrote: > >>> > >>> > >>> On Thu, May 6, 2010 at 9:13 AM, Bryan O'Sulliva

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 wrote: > On Thu, May 6, 2010 at 7:48 PM, Bas van Dijk wrote: >> On Thu, May 6, 2010 at 3:24 PM, Michael Snoyman wrote: >>> >>> >>> On Thu, May 6, 2010 at 9:13 AM, Bryan O'Sullivan >>> wrote: On Wed, May 5, 2010 at 10:51 PM, Michael Snoyma

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 wrote: > On Thu, May 6, 2010 at 3:24 PM, Michael Snoyman wrote: >> >> >> On Thu, May 6, 2010 at 9:13 AM, Bryan O'Sullivan wrote: >>> >>> On Wed, May 5, 2010 at 10:51 PM, Michael Snoyman >>> wrote: * When a connection is released, is goes to

Re: [Haskell-cafe] Database connection pool

2010-05-06 Thread Bas van Dijk
On Thu, May 6, 2010 at 3:24 PM, Michael Snoyman wrote: > > > On Thu, May 6, 2010 at 9:13 AM, Bryan O'Sullivan wrote: >> >> On Wed, May 5, 2010 at 10:51 PM, Michael Snoyman >> wrote: >>> >>> * When a connection is released, is goes to the end of the pool, so >>> connections get used evenly (not s

Re: [Haskell-cafe] Database connection pool

2010-05-06 Thread Bas van Dijk
On Thu, May 6, 2010 at 3:24 PM, Michael Snoyman wrote: > > > On Thu, May 6, 2010 at 9:13 AM, Bryan O'Sullivan wrote: >> >> On Wed, May 5, 2010 at 10:51 PM, Michael Snoyman >> wrote: >>> >>> * When a connection is released, is goes to the end of the pool, so >>> connections get used evenly (not s

Re: [Haskell-cafe] Database connection pool

2010-05-06 Thread Michael Snoyman
On Thu, May 6, 2010 at 9:13 AM, Bryan O'Sullivan wrote: > On Wed, May 5, 2010 at 10:51 PM, Michael Snoyman wrote: > >> * 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 bet

Re: [Haskell-cafe] Database connection pool

2010-05-05 Thread Bryan O'Sullivan
On Wed, May 5, 2010 at 10:51 PM, Michael Snoyman wrote: > * 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, because then your D

[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 gotcha