jipiboily / monologue

Monologue is a basic blogging engine. It is a Rails mountable engine you can mount in your already existing Rails app, or a in a new one! Enjoy.
http://jipiboily.com/2013/monologue-0-3-0-released-and-monologue-markdown
MIT License
477 stars 196 forks source link

Preventing N tag queries on post index pages #315

Open spilliton opened 7 years ago

spilliton commented 7 years ago

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.

jipiboily commented 7 years ago

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).