On Tue, 20 Jun 2000, Andrew Dunstan wrote:

> 
> The DBI manpage says this:
> 
> connect_cached is like connect, except that the database handle returned is
> also stored in a hash associated with the given parameters. If another call
> is made to connect_cached with the same parameter values, then the
> corresponding cached $dbh will be returned if it is still valid. The cached
> database handle is replaced with a new connection if it has been
> disconnected or if the ping method fails.
> 
> Note that the behavior of this method differs in several respects from the
> behavior of presistent (sic) connections implemented by Apache::DBI.
> 
> What are the differences?

Apache::DBI uses a cleanup handler to rollback any uncomitted transactions
after each request.  It is also transparent, i.e. you can use normal
connect statements and turn the persistence on or off by putting in
Apache::DBI or not.

There are probably other differences that I'm not aware of.

- Perrin

Reply via email to