Subject | RE: [firebird-support] FB 2.5 Embedded - How much contention to expect from xx threads sharing same attachment? - Email found in subject |
---|---|
Author | Leyne, Sean |
Post date | 2010-10-04T17:11:04Z |
Olivier,
Each thread needs its own attachment/connection.
There is very little overhead, however, for each connection.
Sean
> Using version 2.5, embedded, windows.If you use a single attachment, then your commands will be serialized -- not good if you expect/need simultaneous operation.
> Application server process is multi-threaded, one thread per user.
> Each of these threads use a distinct attachment (and hence distinct
> transactions, statements, ...).
> Considering using a single attachment (per DB, per server process), shared
> among those threads, but still keep thread isolated transactions, statements,
> and so on...
>
> I'm wondering how much contention will happen between all these threads
> sharing a same attachment, but using distinct transactions and statements
> handles.
Each thread needs its own attachment/connection.
There is very little overhead, however, for each connection.
Sean