[Catalyst] How to share a database connection across multiple Catalyst apps?

Tomas Doran bobtfish at bobtfish.net
Wed Sep 8 02:21:16 GMT 2010

On 7 Sep 2010, at 18:59, Simon Miner wrote:
> All three of these apps run under a single Apache 1.3.42/mod_perl  
> 1.31 server.

Wow, mod_perl 1.... Ok then :)

>  It appears that each server process creates a unique database  
> connection variable for each of these apps. Although these database  
> connections get reused from request to request, I would like to make  
> things even more efficient by having a single database connection  
> variable per server process which gets shared across all 3 Catalyst  
> apps.

Why do you think that this will help or affect anything?

I.e. is this not premature optimisation?


More information about the Catalyst mailing list