perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Ochs" <ch...@paymentonline.net>
Subject Re: BerkeleyDB with mod perl
Date Thu, 22 Apr 2004 21:07:25 GMT
Yep sticking it in a global and handling it like Apache::DBI works.


----- Original Message ----- 
From: "Perrin Harkins" <perrin@elem.com>
To: "Chris Ochs" <chris@paymentonline.net>
Cc: "Modperl List" <modperl@perl.apache.org>
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


Mime
View raw message