You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.
In ActiveRecord::Associations::CollectionProxy, a call to respond_to? triggers load_target before checking the proxy_association class, which in turn calls .all on the association, forcing immediate load of all records. In my application this is causing the early load of millions of records, since scopes have not yet been applied.
The text was updated successfully, but these errors were encountered:
pdf
added a commit
to pdf/cancan
that referenced
this issue
Aug 26, 2012
In
ActiveRecord::Associations::CollectionProxy
, a call torespond_to?
triggers load_target before checking the proxy_association class, which in turn calls.all
on the association, forcing immediate load of all records. In my application this is causing the early load of millions of records, since scopes have not yet been applied.The text was updated successfully, but these errors were encountered: