Hi all,

Using Cake 1.2.0.6311 I'm having real problems with the number of SQL
queries in my app.

For example, I have Enquiry belongsTo User and User hasMany Enquiry.

A simple $this->Enquiry->find('all') results in one query to fetch the
enquiries, and then a separate query for every single Enquiry to fetch the
User for that Enquiry.

When I have more complex model relations I'm ending up with over 10,000 SQL
queries.

What am I doing wrong?!

Thanks,

Alex

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