Friday, March 25, 2011

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

On Mar 25, 9:50 pm, Taylor Strait <li...@ruby-forum.com> 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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate