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
This becomes expensive quickly since the data set returned is a function of num(Pet) * num(Car) * num(FavoriteMovie) * num(KitchenSink). Other than explicitly doing separate queries by either call find multiple times or doing a lazy load with get<associationName>, is there a good way to mitigate this issue?
I have a fix for this locally that automatically splits find calls into multiple queries when there is more than one include and transparently merges the result back together. What do you think about this approach?
include.seperate which would offer you the oppurtunity to split an include into a seperate call to avoid the costly deduplication logic is on the roadmap: #2869
Activity
mickhansen commentedon Jul 16, 2015
include.seperatewhich would offer you the oppurtunity to split an include into a seperate call to avoid the costly deduplication logic is on the roadmap: #2869I hope to start on it soon.
mickhansen commentedon Jul 23, 2015
Working on support for hasMany here: #4177