Re: Runtime Database connections- one more time
[prev]
[thread]
[next]
[Date index for 2005/01/23]
Daniel Collis Puro wrote:
> It works from the command line, and feels MUCH cleaner than using
> "our()" . .
It's identical to your previous approach, except that you are now
re-defining a method on every single request. That looks much less
clean to me.
> any mod_perl concerns?
You will probably cause more memory to be unshared by constantly
re-defining this method.
I still don't see why you need any of this. Why can't you make your
Class::DBI subclasses get their connection info from the same place as
your other classes? If the connection parameters are identical, it will
reuse an open connection.
- Perrin
|
|
Re: Runtime Database connections- one more time
Perrin Harkins 18:48 on 23 Jan 2005
|