when build small apps with a few table and model relation, the
responsiveness of apps is still usable, but now when i creating many
tables with many relation, the apps is incredibly slow.

then i'm tryng to find how why the apps is very slow, and i find this flow :
bootstrap -> dispatcher -> invoke -> constructor -> loadModel, i know
even on bootstrap and dispatch the process has take a quite long
enough but is worse when loading the model, the process recursively
creating the object model that associate with model controller.

so even for a little task, cakephp always 'preparing' the worst case,
generate all relation that defined on model class. in my case (many
tables with many association defined) the bottleneck is in model
objects creation, not on the query process.

it's there a best practice to make just initialize needed model, but
still easy to maintain than by using recursive 0, and bind one by one
on the code, or worst by using app::import model on every call.

thank's





-- 
Mukhamad Ikhsan
Y!id:ikhsan_only
http://www.diodachi.com

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to