JP 🌈 is a user on icosahedron.website. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
JP 🌈 @pixelpaperyarn

any on folks have thoughts on if there's a time you *shouldn't* use has_many :through relationships?

Β· Web Β· 1 Β· 0

@pixelpaperyarn not in particular. however, you should pay attention to the queries rails makes, because with huge tables subqueries / weird joins can murder systems

@pixelpaperyarn
Anytime I have a has-and-belongs-to-many I make it a full class and use a had_many :through. So offhand: nope - they're great!