Re: mp2 and Class:DBI

[prev] [thread] [next] [Date index for 2005/01/05]

From: Perrin Harkins
Subject: Re: mp2 and Class:DBI
Date: 21:13 on 05 Jan 2005
On Wed, 2005-01-05 at 14:58 -0600, Randy Kobes wrote:
> It's probably just me, but just to clarify the wording -
> are you saying the use of PerlChildInitHandler, as in
> Apache::DBI, *is* a safe way to to initiate database
> connections within a startup.pl?

It is, since it doesn't actually open any connections, but rather
postpones that until after the fork.  That's what connect_on_init()
does.

> Also, does that depend on
> whether one's using threads (assuming the underlying
> database engine is thread safe).

It's only safe if it runs after the threads are spawned.  Not sure if
this is the case or not.

- Perrin

mp2 and Class:DBI
Sean T Allen 19:18 on 04 Jan 2005

Re: mp2 and Class:DBI
Perrin Harkins 20:47 on 04 Jan 2005

Re: mp2 and Class:DBI
Mike Carlton 05:42 on 05 Jan 2005

Re: mp2 and Class:DBI
Stas Bekman 05:49 on 05 Jan 2005

Re: mp2 and Class:DBI
Randy Kobes 20:58 on 05 Jan 2005

Re: mp2 and Class:DBI
Perrin Harkins 21:13 on 05 Jan 2005

Re: mp2 and Class:DBI
Stas Bekman 21:13 on 05 Jan 2005

Re: mp2 and Class:DBI
Perrin Harkins 05:56 on 05 Jan 2005

Generated at 12:16 on 16 Jan 2005 by mariachi v0.52