Marnen Laibow-Koser wrote: > Morgan Morgan wrote: > [...] >> hrmm. i guess it would make more sense to do a bunch of db querys and >> parse small amounts of data instead of doing one big db call and parsing >> large amounts of data.. > > No. Ask for all the records you need in as few queries as possible > (remember that AR will take arrays of IDs, as well as all manner of > other conditions). Many little queries is generally a sign that > something is wrong. > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > [email protected]
well say i had 25 users, i'd be doing 25 querys right. one for each user then looping through the results in basically the same way i was doing it before? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

