monologue icon indicating copy to clipboard operation
monologue copied to clipboard

Preventing N tag queries on post index pages

Open spilliton opened this issue 7 years ago • 1 comments

Every post partial calls .tags which causes a query per post. Adding :tags to the includes should bring this down to a single query instead of N queries.

spilliton avatar Mar 17 '17 14:03 spilliton

Thanks! Looks legit.

Monologue requires attention (paying $100 to get it upgraded to Rails 5, see https://github.com/jipiboily/monologue/issues/314)...I'll hold before merging as the test suite is failing for this PR (and all builds, btw).

jipiboily avatar Mar 20 '17 10:03 jipiboily