[Dbix-class] memory usage to load schema

Rob Kinyon rob.kinyon at gmail.com
Wed Jan 27 13:36:39 GMT 2010


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 with
> 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



More information about the DBIx-Class mailing list