[Monetdb-developers] best practices with connection pool
Hi, Maybe I should move this to the users part, if so, please inform me. What is currently the best practice of connecting to MonetDB5/SQL? Is there much overhead in the connection phase (thus: cache the connection) or can a developer just reconnect each time the database connection is required without much overhead? The target platform is extremely demanding in requests and memory, so I would like to design it good from the start. Stefan
On 27-05-2008 16:41:02 +0200, Stefan de Konink wrote:
What is currently the best practice of connecting to MonetDB5/SQL? Is there much overhead in the connection phase (thus: cache the connection) or can a developer just reconnect each time the database connection is required without much overhead?
The target platform is extremely demanding in requests and memory, so I would like to design it good from the start.
Then go for connection pooling. Logging in requires a handshake, which is expensive on large scale. Beware that using >1 connection at the same time to an SQL server is a challenge that is only minimally tested. My practical experiences with that boils down to signal 11.
participants (2)
-
Fabian Groffen
-
Stefan de Konink