"I'm trying to write a enterprise resource planning Software wirth
cake."

You mean you're using Cake to write something that's not a blog
application?? Well there's your problem. <duck>

All kidding aside, I'm also using Cake to write an enterprise system
that manages loan underwriting for community banks. With over 60
tables (so far, another 60 are in the works for the next phase) I'm
experiencing similar performance problems with debug on. The problem
appears to be the creating/writing of the 60 cache files inside app\tmp
\cache\models with each request. During development, I'm suffering
through 3+ second response times!!  The good news is that on the
dedicated beefy production server (with debug=0), the response times
are sub-second and feels real snappy to the user. The data is served
fresh each request (no caching there...not wanted either), and the
files in app\tmp\cache\models don't change. This must be where the
performance hit is.

The interesting thing is that bulk of the performance hit takes place
prior the app controller's "beforeFilter". I traced it through a while
back and it was in the dispatcher.php, $controller->constructClasses()
where it was traversing through all the relationships defined in the
models. Even though I have $recursive = 0 and use the new Containable
behavior (was previously using the bindable behavior), it appears to
be too late. I guess contructClasses ignores $recursive = 0...or am I
missing something?

Again, performance is more than adequate on good server hardware with
debug=0, but the performance hit during development is quite
noticeable. The only solution I see is to start removing all the
default relationships defined in the model and use bindModel before
every call. I hope to learn otherwise in this thread.
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to