Re: [CDBI] (no subject)

Matt S Trout <dbix-class-uY5y5/[email protected]>
Newsgroups gmane.comp.lang.perl.modules.class-dbi
Message-ID <[email protected]>
Daniel Williams wrote:
> 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 ?

sqlrelay strikes me as being less effort.

-- 
      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.