RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

EagerRecord means never using :include again

Comments

This looks awesome! I’ll definitely try this one out.

Quick question: could it ever eagerly load queries where you don’t need eager loading and unnecessarily decrease performance?

It’s certainly possible, but I can’t think of many situations in which that would happen – maybe if you were pulling N results and had a view that displayed a lot more information for the first result than for the rest of them, or some such thing, but the assumption is that in most cases the eager loading is not going to be wasted work.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in