Hi,

I have an issue about connection pools:

Everytime i call Sequel.connect to my postgresql database, i consume the 
connection pool, but if i dont disconnect imediately, the connections do 
not automatically terminate itself and stay idle forever.
I know its possible to pass a Block to Sequel.connect to avoid the 
disconnect call, but i want to know what are the best pratices on this 
matter.

For instance, if i decide to manually disconnect from the database, what if 
my process throws an exception in the midle of its execution and the 
disconnect call is never reached?

There is a way to guarantee that we will never have idle connections?

Right now, i receiving an error of Too Many connections (and i am just 
developing, so im not at production with several connections and stuff)

][`s

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to