Yep sticking it in a global and handling it like Apache::DBI works.

----- Original Message ----- 
From: "Perrin Harkins" <[EMAIL PROTECTED]>
To: "Chris Ochs" <[EMAIL PROTECTED]>
Cc: "Modperl List" <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 1:36 PM
Subject: Re: BerkeleyDB with mod perl


> On Thu, 2004-04-22 at 16:34, Chris Ochs wrote:
> > If I set the environment in startup.pl but open the db
> > handle in my perl handler every time the page is accessed the
performance
> > drops by about 300%, but it does make the errors go away.
>
> There is no need to open the handle every time.  You can open it once
> and put it in a global.  Just do it after the fork.  It's the same idea
> as Apache::DBI.
>
> - Perrin
>
>
> -- 
> Report problems: http://perl.apache.org/bugs/
> Mail list info: http://perl.apache.org/maillist/modperl.html
> List etiquette: http://perl.apache.org/maillist/email-etiquette.html
>
>


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to