> I appreciate the ideas, but using distinct or limit is not going to > change the situation. What is happening is the "SELECT (...) FROM > areas (...)" statement is being called multiple times (once for every > shift) and many of those times it says "WHERE area.id = 1" because > many shifts have area_id = 1.
Any help http://bakery.cakephp.org/articles/view/quick-tip-doing-ad-hoc-joins-in-model-find ? -- jon bennett - www.jben.net - blog.jben.net 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 [email protected] 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 To unsubscribe, reply using "remove me" as the subject.
