GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Since @episode is loaded by cancan you can't eager load its comments up-front. You do this in the partial, but for some reason whenever you're accessing comment.episode it's hitting ActiveRecord's cache. This fixes it.
Explicitly include episode to avoid hitting ActiveRecord's cache so much
+1 Goncalo! I was in the audience today when you submitted this pull request during your talk. Well done.