- RU.PERL ----------------------------------------------------------- RU.PERL - Msg : #586 [562] От : Andrew Alakozow 2:5061/6 08 октября 03, 16:24 Кому : Dmitry Tsigelnik 11 октября 03, 20:59 Тема : Re: Persitent db connection and Mod_Perl ------------------------------------------------------------------------------- DT> Из доки под mod_perl: DT> PerlChildInitHandler DT> The child_init phase happens immediately after the child process is DT> spawned. Each child process (not a thread!) will run the hooks of this DT> ^^^^^^^^^^^^^^^^^^ ты это видел???? DT> phase only once in their life-time. http://perl.apache.org/docs/2.0/user/performance/mpm.pdf 1.3.2 Work with DataBases under Threaded MPM The current Apache::DBI should be usable under threaded mpm, though it doesn 't share connections across threads. Each Perl interpreter has its own cache, just like in the prefork mpm. DBI::Pool is a work in progress, which should bring the sharing of database connections across threads of the same process. Watch the mod_perl and dbi-dev lists for updates on this work. Once DBI::Pool is completed it'll either replace Apache::DBI or will be used by it. aa29 --- Microsoft Outlook Express 6.00.2720.3000 * Origin: Life In The Dark (2:5061/6)