swanson/stringer — pull request #202 by ejfinneran (2013-06-26 19:35:55+00:00)
Title: Prevent n+1 queries when serializing stories to json

If you watch the logs when loading pages like /news, /archives or /starred, you'll see that we're fetching the feed for each story displayed one at a time.

This should prevent so many queries from being run by eagerly loading the feed associated and using `feed_id` rather than `feed.id` so we don't have to load the feed object just for the ID.