mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
20b9bb1de0
This examines all the association branches we are being asked to preload and will delay loading an association if it's likely that we find a similar association later and can batch them together. For example, when loading Author.preload(:posts, favorite_authors: :posts).first The preloader now knows to delay loading the top level posts so that it can load both the top level :posts and the :posts from the favourite authors associations together. Co-authored-by: Dinah Shi <dinahshi@github.com> |
||
---|---|---|
.. | ||
builder | ||
join_dependency | ||
preloader | ||
alias_tracker.rb | ||
association.rb | ||
association_scope.rb | ||
belongs_to_association.rb | ||
belongs_to_polymorphic_association.rb | ||
collection_association.rb | ||
collection_proxy.rb | ||
foreign_association.rb | ||
has_many_association.rb | ||
has_many_through_association.rb | ||
has_one_association.rb | ||
has_one_through_association.rb | ||
join_dependency.rb | ||
preloader.rb | ||
singular_association.rb | ||
through_association.rb |