[Dbix-class] Dbix-class Digest, Vol 9, Issue 27
Brandon Black
blblack at gmail.com
Wed Mar 22 20:43:18 CET 2006
On 3/22/06, Mark Hedges <hedges at ucsd.edu> wrote:
>
> > Date: Wed, 22 Mar 2006 11:08:59 -0600
> > From: "Brandon Black" <blblack at gmail.com>
> > Subject: Re: [Dbix-class] DBIx::Class and mod_perl
> > To: dbix-class at lists.rawmode.org
> >
> > On 3/22/06, Rolf Schaufelberger <rs at plusw.de> wrote:
> >
> > > What is the preferred way to have DBIx::Class to run with mod_perl ?
> > > With CDBI I use the solution described here:
> > > http://wiki.class-dbi.com/wiki/Using_with_mod_perl
> > >
> >
> > Generally speaking, you use DBIx::Class under mod_perl just like you
> > would use it when you're not under mod_perl. It should handle
> > everything fine without any special treatment.
>
> Hi...
>
> Wouldn't you want to use the schema lib first from startup.pl?
> The I would assume the information gathered from the series of
> "describe tables" statements and relationship setups would
> stored in the schema class package and be cloned to each
> intepreter in each child process spawned by Apache, and then
> each child would not have to do that upon every spawn -- it's a
> comparatively slow step that could be avoided.
>
Yes, you want your schema pre-loaded at mod_perl startup time for
better child startup performance. It doesn't matter nearly as much
with a normal Schema, it's mainly a concern for Schema::Loader-based
schemas, which are the only ones that do the "describe tables" step
you mention.
-- Brandon
More information about the Dbix-class
mailing list