in reply to Performance v's Maintainability
What you can do is make a function that returns a valid database handle and call that from each of your modules. You can have this function do its own caching of the database handle for now (just stuff it into a global) and then when you switch to mod_perl you'll be able to change it to use Apache::DBI.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Performance v's Maintainability
by Ryszard (Priest) on Sep 22, 2002 at 14:58 UTC |