in reply to Re: What if mod_perl is not an option?
in thread What if mod_perl is not an option?

Eliminating redundant database connection is a good idea with both mod_perl and CGI.

Are you suggesting that there exists a method of keeping pooled database connections from within a CGI, non-mod_perl environment? Or just saying that there should be as few (most likely one) database connection(s) per script instance?

Replies are listed 'Best First'.
Re: What if mod_perl is not an option?
by Abigail-II (Bishop) on Feb 04, 2004 at 22:22 UTC
    Or just saying that there should be as few (most likely one) database connection(s) per script instance?
    Yes.

    Abigail

Re: Re: What if mod_perl is not an option?
by borisz (Canon) on Feb 04, 2004 at 22:06 UTC
    As long, as you have the resources keep the connection to the database open. Apache::DBI does that for you.
    Boris