I don't think the number of characters in a query makes too much difference. Not compared to how the query is formulated, in any case. It's also not so much a Cake thing as between your DB and its PHP wrapper. But, again, it's likely the least thing to be concerned about.
On Fri, Apr 24, 2009 at 11:59 PM, Dave Maharaj :: WidePixels.com <[email protected]> wrote: > 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 [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 -~----------~----~----~----~------~----~------~--~---
