Re: [Catalyst] DBIx makes Catalyst startup painfully slow

2009-02-17 Thread Neo [GC]
Eden Cardim schrieb: On Tue, Feb 10, 2009 at 2:08 PM, Neo [GC] wrote: ->load_classes is a DBIx::Class::Schema method, check the docs, if you don't provide any arguments it uses Module::Find to scan the disk in search of table classes, and given you have 148 tables, that's probably what's hitti

Re: [Catalyst] DBIx makes Catalyst startup painfully slow

2009-02-10 Thread Eden Cardim
On Tue, Feb 10, 2009 at 2:08 PM, Neo [GC] wrote: > I'm afraid this is all I can get out of it, as I don't have any fancy > load_classes-stuff or anything in my models, just definitions like table(), > add_columns(), has_many(), belongs_to() aso. > If someone knows further tweaking, please be free

Re: [Catalyst] DBIx makes Catalyst startup painfully slow

2009-02-10 Thread Neo [GC]
Ok I've tried it (base class with __PACKAGE__->load_components()) and after some fiddling around, I learned that it's not good to save the file in MyApp/lib/MyDB/. ;) This speeded up my app start from 12 seconds to 8 seconds, what is much more acceptable. Considered that 4 seconds are the app

Re: [Catalyst] DBIx makes Catalyst startup painfully slow

2009-02-10 Thread Neo [GC]
Ah thanks, this is very interesting! I will try and report back. (btw: static schemas of course) Eden Cardim schrieb: On Tue, Feb 10, 2009 at 7:53 AM, Neo [GC] wrote: Is this normal? Is there _any_ way to speed things up? Does anyone know, what DBIx even does the whole time (probing the

Re: [Catalyst] DBIx makes Catalyst startup painfully slow

2009-02-10 Thread Eden Cardim
On Tue, Feb 10, 2009 at 7:53 AM, Neo [GC] wrote: > Is this normal? Is there _any_ way to speed things up? Does anyone know, > what DBIx even does the whole time > (probing the database or something)? http://www.grokbase.com/topic/2007/08/17/dbix-class-startup-speed/tcXHEoyXXwHvcI5RppiTmCiHg4g --

Re: [Catalyst] DBIx makes Catalyst startup painfully slow

2009-02-10 Thread Kieren Diment
On 10/02/2009, at 10:25 PM, Andrew Rodland wrote: On Tuesday 10 February 2009 04:53:32 am Neo [GC] wrote: Hello people, I'm working on a rather big CRM system using Catalyst with all bells and whistles. For database, we use DBIx::Class::Schema and this drives me crazy... Apart from Cataly

Re: [Catalyst] DBIx makes Catalyst startup painfully slow

2009-02-10 Thread Andrew Rodland
On Tuesday 10 February 2009 04:53:32 am Neo [GC] wrote: > Hello people, > > I'm working on a rather big CRM system using Catalyst with all bells and > whistles. For database, we use DBIx::Class::Schema and this drives me > crazy... > > Apart from Catalyst being really resource hungry, the startup t

Re: [Catalyst] DBIx makes Catalyst startup painfully slow

2009-02-10 Thread Neo [GC]
Nigel Metheringham schrieb: On 10 Feb 2009, at 10:53, Neo [GC] wrote: Apart from Catalyst being really resource hungry, the startup time for the application (testserver oder fastcgi) is ok, about 4 seconds on my development-system (CentOS on VMware Fusion on MacOS X Leopard, Core 2 Duo 2.2GHz

Re: [Catalyst] DBIx makes Catalyst startup painfully slow

2009-02-10 Thread Nigel Metheringham
On 10 Feb 2009, at 10:53, Neo [GC] wrote: Apart from Catalyst being really resource hungry, the startup time for the application (testserver oder fastcgi) is ok, about 4 seconds on my development-system (CentOS on VMware Fusion on MacOS X Leopard, Core 2 Duo 2.2GHz). It's not perfect for de

[Catalyst] DBIx makes Catalyst startup painfully slow

2009-02-10 Thread Neo [GC]
Hello people, I'm working on a rather big CRM system using Catalyst with all bells and whistles. For database, we use DBIx::Class::Schema and this drives me crazy... Apart from Catalyst being really resource hungry, the startup time for the application (testserver oder fastcgi) is ok, about