[EMAIL PROTECTED] (Vivek Khera) wrote:
>>>>>> "PH" == Perrin Harkins <[EMAIL PROTECTED]> writes:
>PH> Don't open a connection during startup.  If you do, it will be shared when
>PH> Apache forks, and sharing a database handle is bad for the same reasons
>PH> sharig a file handle is.  Open a connection in the child process instead.
>
>Speaking of which, what does one do when Apache::DBI is loaded, and
>the parent process needs to pull some config info out of the database
>that all clients also use?  That is, how can I force Apache::DBI to
>close that handle prior to the forking of children?

I bet you could do:
   $dbh->DBI::db::disconnect


  -------------------                            -------------------
  Ken Williams                             Last Bastion of Euclidity
  [EMAIL PROTECTED]                            The Math Forum

Reply via email to