On Thu, Oct 8, 2009 at 5:05 PM, Patrick Doyle <[email protected]> wrote:
> Thanks! That's just what I was l looking for. > > I still wonder if there is some way to optimize this at the database > ... I have heard the term "index" used in the context > of database engines... perhaps I should look into what that means and > whether or not it is the sort of magic that is supposed to apply to > this situation. No, it's not. An RDBMS has no intrinsic sort order, so if what you're looking for exists at all, it'll be a vendor-specific extension. > In the mean time, I'll start playing with #default_scope, assuming > it's present in 2.3.4. It is. -- Hassan Schroeder ------------------------ [email protected] twitter: @hassan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

