Has_many association

Hello All,
newbie but I have one question:
If I have a Model ‘parent’ and it contains has_many associations to 5
tables.
Now once parent object is loaded, all the other has_many associated
model also get retrieved which slows down the ‘parent’ model load.
What do you recommend this in these kinds of scenario?
Should disabling has_many option is the only way?
Can we avoid this? what would be the best way?
Thanks

On 1/29/07, Rails junkie [email protected] wrote:

Thanks
Auto-loading associations does not happen by default. So unless you
are using the :include directive you should be fine. Use
./script/console and development.log to verify what is happening.

Hope this helps.


Zack C.
http://depixelate.com

Great. Will post the findings.
Appreciate the response

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs