Just doing some messing around on a site and playing with contain vs.
$this->model->read($id).
 
When I leave the controller to read the $id SQL Queries = 6
 
but contain spits out 8.
 
Now the 6 queries was 2010 characters in length while the 8 queries was 400
less at 1600 characters. My question...is it better to have fewer longer
queries or more shorter queries when it comes to speed?
 
Both were very similar in time but then there is only me testing the site
now...thinking what is best in a real  live production environment?
 
I will be containing more queries on other controller and it just happened
to be that  there were more for this particular one...might be less on
others but just wanted to hear some general feedback from people who have
more experience with Cake.
 
thanks,
 
Dave 

--~--~---------~--~----~------------~-------~--~----~
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