[Dbix-class] memory usage to load schema

Julien Sobrier julien at sobrier.net
Thu Jan 28 05:50:31 GMT 2010


Thank you

On Wed, Jan 27, 2010 at 5:36 AM, Rob Kinyon <rob.kinyon at gmail.com> wrote:

> On Wed, Jan 27, 2010 at 00:29, Julien Sobrier <julien at sobrier.net> wrote:
> > Hello,
> > I have an application that uses DBIx::Class:Schema to load 28 tables wi=
th
> > relationships between all of them. It takes 14 MB up front just to load
> all
> > these tables. I got this number by using GTop and checking the increase
> of
> > proc_mem->rss after loading the Schema class.
> >
> > That seem to be a load of memory for just loading the libraries. Does it
> > seem excessive in your experience? Is there any way to reduce the memory
> > usage?
>
> This is not excessive in the slightest. Try this: create a duplicate
> of each table Foo called FooCopy. So, you have 56 tables. Now, see how
> much memory is used. I'll bet it's around 16MB.
>
> Rob
>
> _______________________________________________
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive:
> http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20100127/b19=
aca29/attachment.htm


More information about the DBIx-Class mailing list