Re: Runtime Database connections- one more time

[prev] [thread] [next] [Date index for 2005/01/23]

From: Perrin Harkins
Subject: Re: Runtime Database connections- one more time
Date: 18:48 on 23 Jan 2005
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

Runtime Database connections- one more time
Daniel Collis Puro 17:27 on 23 Jan 2005

Re: Runtime Database connections- one more time
Perrin Harkins 18:48 on 23 Jan 2005

Re: Runtime Database connections- one more time
Bo Strinnholm 23:25 on 23 Jan 2005

Re: Runtime Database connections- one more time
Perrin Harkins 01:36 on 24 Jan 2005

Generated at 16:37 on 28 Jul 2005 by mariachi v0.52