Subject | Re: [firebird-support] Embedded for MultiThread |
---|---|
Author | Dean Harding |
Post date | 2008-09-12T07:42:12Z |
Kjell Rilbe wrote:
the database at a time but that one process can connect as many times as
it likes.
can have as many connections as you like (one per thread, for example).
Typically, you'd use connection pooling to only open as many connections
are you need simultaneously. Depending on your programming language, it
probably already has connection pooling support built-in.
Dean.
> 1. Embedded allows only one client instance (= "one single loading ofWell, the way I'd word that is that you can only have one process access
> the embedded driver") to connect to the server, but it can have any
> number of connections.
the database at a time but that one process can connect as many times as
it likes.
> 2. Connections should not be shared between threads, unless each use isYes, but you don't need to share connections between threads because you
> protected with a critical section.
can have as many connections as you like (one per thread, for example).
Typically, you'd use connection pooling to only open as many connections
are you need simultaneously. Depending on your programming language, it
probably already has connection pooling support built-in.
Dean.