4 ms·
Somewhat deviating, but relavent. If we use counter cache that is to keep vote_count on comments table, the include(:comments) solution would work fine. https:
by funnyfoobar 4y ago
Somewhat deviating, but relavent. If we use counter cache that is to keep vote_count on comments table, the include(:comments) solution would work fine.
https://scoutapm.com/blog/how-to-start-using-counter-caches-in-rails https://scoutapm.com/blog/how-to-start-using-counter-caches-...