Effective querying in belongs to associations
In this post i'll go through how to write efficient queries for belongs_to associations. I primarly work with Rails so it will focus on that a bit but i'll share the SQL versions too so you can implement similarly everywhere.
Example domain model
Let...
dsdev.in1 min read