Re: 600+ models issue

2010-01-28 Thread Quess
I wonder what type of project is it? Could you reveal a bit of mystery and tell what project need so many tables? I'm just very curious. On 27 Sty, 23:13, tiberium911 wrote: > Can cake handle a website with 600+ connected models? Right now the > site takes 7-10 seconds as soon as cake initializes

Re: 600+ models issue

2010-01-28 Thread j0n4s.h4rtm...@googlemail.com
Are you sure you do not mix up instances and classes? Yes you can fetch 600 instances of one or a few models without any issue (be sure not to store images along or at least not fetch them, or other binary data) Are you sure you modeled 600 classes? None of them are similar? If they are: - use beh

Re: 600+ models issue

2010-01-27 Thread Miles J
No it doesnt really. I just uses the AppModel in its place. On Jan 27, 5:47 pm, Jon Bennett wrote: > > Im guessing its just a lot of HABTM tables. If so, you don't need > > models for those unless it has specific functionality. > > Cake still creates a model class per join though I think, so you

Re: 600+ models issue

2010-01-27 Thread Jon Bennett
> Im guessing its just a lot of HABTM tables. If so, you don't need > models for those unless it has specific functionality. Cake still creates a model class per join though I think, so you still use up memory even though there's no physical file to load. jb -- jon bennett - www.jben.net - bl

Re: 600+ models issue

2010-01-27 Thread Miles J
May I ask what type of site? Ive worked on large projects before and never got over 600. Im guessing its just a lot of HABTM tables. If so, you don't need models for those unless it has specific functionality. On Jan 27, 4:53 pm, tiberium911 wrote: > No 600 is not extreme. We have over 600, all

Re: 600+ models issue

2010-01-27 Thread tiberium911
No 600 is not extreme. We have over 600, all necessary, over about 7 database servers. Thanks for the link, helped quite a bit. Still need to find some more speed improvements, but most of that will probably be more caching. On Jan 27, 7:36 pm, Miles J wrote: > Forgot to say, use a lazy loader. >

Re: 600+ models issue

2010-01-27 Thread Miles J
Forgot to say, use a lazy loader. http://github.com/mcurry/lazy_loader On Jan 27, 4:34 pm, Miles J wrote: > Does your site really have 600 database tables? That's a bit extreme > don't you think. > > On Jan 27, 2:13 pm, tiberium911 wrote: > > > Can cake handle a website with 600+ connected mode

Re: 600+ models issue

2010-01-27 Thread Miles J
Does your site really have 600 database tables? That's a bit extreme don't you think. On Jan 27, 2:13 pm, tiberium911 wrote: > Can cake handle a website with 600+ connected models? Right now the > site takes 7-10 seconds as soon as cake initializes any model. I > looked through the cake code, and

600+ models issue

2010-01-27 Thread tiberium911
Can cake handle a website with 600+ connected models? Right now the site takes 7-10 seconds as soon as cake initializes any model. I looked through the cake code, and it appears that cake initializes all 600+ models on any model initialization. Check out the new CakePHP Questions site http://cakeq