Page 1 of 1

Pooling question

Posted: Thu 12 Jan 2017 23:01
by perqdb
In the documentation for PgSqlConnection.ClearPool static method (https://www.devart.com/dotconnect/postg ... rPool.html) it says "Pool is automatically cleared if a connection is idle for some time or closed by the server." Is there anyway to set the "idle" time to automatically clear the connections? I know there is a ConnectionLifetime setting, but that sounds like it will only close the connection if it is re-used past that timeout.

My goal is to have pooled connections closed automatically if they have been idle for a pre-set amount of time, (2 minutes, for example). I have not been able to find a way to do this with the DevArt pooling settings. Am I missing something? (Or misunderstanding how something works?)

Re: Pooling question

Posted: Fri 13 Jan 2017 16:10
by Pinturiccio
dotConnect for PostgreSQL does not support such feature. There is no such possibility to automatically close connections which are idle for some specific time.