Rails includes vs Join
When I started learning Rails, I was always in a state of confusion about using includes or joins, because both are used in almost same scenario. Includes uses eager loading whereas joins uses lazy loading. Both are used when certain operations are meant to be performed on associated tables. And here comes the difference. https://medium.com/@swapnilggourshete/rails-includes-vs-joins-9bf3a8ada00
Post a comment