Re: Which exact DBI->connect method does Class-DBI call?

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

From: Perrin Harkins
Subject: Re: Which exact DBI->connect method does Class-DBI call?
Date: 05:28 on 25 Jan 2005
Jay Strauss wrote:
> 1) CDBI creates a dbh with the parameters YOU choose, when you setup the 
>  cdbi base class

Actually it has several parameter values which you have to pass in when 
you open a connection or it will break.

> 2) Even if your dbh doesn't have the same parameters as the dbh you 
> setup during mod_perl startup, your cdbi classes will only suffer the 
> performance hit the first time one of your cdbi classes is called, after 
> that, Apache::DBI will cache that (different) dbh for all future requests

I suspect he's trying to avoid having two database connections per 
apache process, which is what would happen if the parameters are 
different in any way between the Class::DBI connection and any other 
connection.

- Perrin

Re: Which exact DBI->connect method does Class-DBI call?
Perrin Harkins 05:28 on 25 Jan 2005

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