Paul J Stevens wrote:
Anton Nekhoroshikh wrote:
Can be we shall do db_connect() before to CreateChild and through
childinfo we shall transfer connection handler?
Very much it would be desirable to use OCIConnectionPool for Oracle.
Anton,
I don't think simply passing the connection handler to clientinfo will
do for mysql/postgresql. Even if it did, a single connection would
throttle performance hugely.
Nice of oracle to provide a connectionpool api, but I don't think such
exists for mysql/postgresql. Sqlrelay may well do the trick but we
don't have sqlrelay support at the moment.
Perhaps we have to write our own connection-pool someday...
Let's provide even it and we shall create structure "poolinfo" which it
will be transferred all child.
And still to me like pthread, instead of fork:-)
By the way, I and have not understood, why we do not want to use pthread?