I have a simple table inherance, with an upper class GeneralElement. A class that inherits is Activity: class Activity < GeneralElement ... end
The GeneralElement table is very big (about 2.000.000 rows!). Other classes that inherit from GeneralElement return queries very fast, but Activity.last is very slow. I have added indexes to id and type, but it has no effect. What can I do? I'll appreciate any help -- 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.

