Re: Why is Rails eager loading most of my database?

Frederick Cheung
2011-03-25T21:59:38Z

On Mar 25, 9:50 pm, Taylor Strait
<li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
wrote:
> Thanks Fred - that was very helpful. Is there a more efficient way to
> validate inclusion of that doesn''t tax the database so heavily?
>

Well personally I''d just use a foreign key constraint, but you could
use validates presence of on the association

Fred

--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.