[CDBI] Class::DBI opens database connection for each object?
Edward J. Sabol
Edward.J.Sabol at nasa.gov
Fri Apr 11 21:00:32 BST 2008
Josh Tanski asked:
> My question is what am I doing wrong - shouldn't there only be one
> database connection open and all db access going through that connection?
Yes, there should be one connection. That's certainly how Class::DBI works
normally. Perhaps the problem is with DBD::PgPP? Maybe it doesn't support DBI
connection sharing properly or maybe it doesn't finish its statement handles
Hope this helps,
More information about the ClassDBI