Tuesday, May 31, 2011

Aw: Slow Build Acl

I assume you have used the build_acl function from the tutorial in the book. I had the same experience in an application with 50 controllers and about 5 functions average per controller. I think the main problem is, that the ACL behaviour is building a tree and this tree has to be sortet after each insert. So there are quite some hits to the database and also quite some php activity involved. I had to raise the timeout in the php.ini to something like 240 or 300 and I also adjustet the MySQL settings for innodb to allow more memory in my development setup (XAMPP 1.7.4 on windows).
So all you can do is providing more ressources and raising the timeout on your development machine. Usually enviorments like XAMPP or such try to limit the ressources of Apache, PHP and MySQL so that you can still use your machines ressources for other things but XAMPP. That might create a bottleneck when running these intesive tasks.

regards,
Jens

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: