[CDBI] (no subject)
"Daniel Williams" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.class-dbi |
|---|---|
| Message-ID | <5B0731A8753509478386ED3D6513B2D101AE68F1@isp-per-exch01.win2k.iinet.net.au> |
Hi, I am undoubtedly going to sound like an idiot somewhere in this email. I absolutely need to minimise / limit the number of DBI connections and hopefully without impacting performance too much. I would like to use something like ResourcePool for the DBI connection inside of my (Class::DBI)DBI base class. When a script wants the database handle it uses db_Main, which is fine, I can put the resourcepool get stuff there. Does class dbi call a function once its completed an action that I can use the free the connection ? Even more fancy, I want to use ResourcePool::Singleton to have a single resource pool across an Apache Mod Perl environment. Has anyone gone down this track, and made it work ? Daniel