I have the next model with the follow associations:
class XmlGen < ActiveRecord::Base
:foreign_key => “series_fk”
class Serie < ActiveRecord::Base
belongs_to :study, #Relaciones entre las clases Study y Series. A
study has many series.
:foreign_key => “study_fk”
I did the follow query:
@instances = Instance.find(:all, :include => [:serie,
but the query is so slow. I want to try do the query manually, with
the option :joins. How do I do this query, exactly, the
Thanks in advance!