Re: [CDBI] Class::DBI opens database connection for each object?
"Edward J. Sabol" <[email protected]> Fri, 11 Apr 2008 16:00:32 -0400
| Newsgroups | gmane.comp.lang.perl.modules.class-dbi |
|---|---|
| Message-ID | <[email protected]> |
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 automatically. Hope this helps, Ed