About 100 matters. Also, there is no way I can scope the query (but, with about 100 matters, I hardly think this is an issue).
On Oct 11, 8:55 pm, Ilan Berci <[email protected]> wrote: > Mauricio Szabo wrote: > > Ok, thanks for the help. The problem is, there is no "slow action", > > it's just the login page, it sends one query to the database (10 > > records total), then redirects to a list of matters (it's just a > > "Matter.find(:all)). The problem I'm getting is precisely this: there > > is nowhere to optimize... > > How many "matters" are we talking about 10? 1000?.. Are they cached? > Why are you using Matter.find(:all)? Can you scope your query to only > find the ones that may be of interest for a given student? > ilan > > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---

