Re: [PHP4BETA] Databases and multithreading
| From: | Andreas Karajannis | Date: | Sat, 09 Oct 1999 08:34:44 +0000 |
| Subject: | Re: [PHP4BETA] Databases and multithreading | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-5423@lists.php.net to get a copy of this message | ||
"Thies C. Arntzen" wrote:
>
>
> nope - as plist is per-thread as well.
>
Just to clarify things: Does this mean plist is not really
persistent and all data is lost after request shutdown?
>
> this should not really be an issue - question is if the db-libs are
> thread-save and if they like to be initialized multiple times.
>
> if we want connection-pooling we need to think about something different
> which can share data between threads.
>
Yes, there should be a central instance that hands out connections and
handles concurrency - as aolserver does.
We have to change the whole database connection mechanism or implement
some clever list-based mechanism, which would minimize the impact on the
various database modules.
-Andreas