Wednesday, September 5, 2012

Re: SLOW: Controller function with many unrelated Models

Tried ClassRegistry::init() as well, no help...

Upon further looking, it seems that although having so many models is
bogging things down, it is really the calling up those model across multiple
databases that may be the real culprit.

When I incrementally introduce each method call in the Controller's function,
the time it takes to load the page jumps by about 5 seconds each time a new
DB is introduced, while staying the same if the new call/query is from a DB
already called.


There are 12 method calls across 5 databases....
The queries themselves take about 2.5 seconds, the page 30+ seconds...

--
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+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate