Support For Eager Loading has_many Relations?
Closed this issue · 1 comments
sshaw commented
Using 2.1.14 and I see that this does not work. Only loading from the belongs_to
side is supported. Is there a reason for not supporting this?
Given the relation company has many products:
# Will cache companies
Product.includes(:company).limit(10)
# Will not cache products
Company.includes(:products).limit(10)
hooopo commented
sync caching for has_many is too hard.