I just want to know which of this two structures is the best for better performance:
So to sum up. Should I use a query with a single association but a big join table (120 000rows) or use a query for 2 associations but with a more lightweight join table ?
After some reflexions, I think I will use a single join. I have just seen some benchmarks that shows single join will be more efficient than multiple queries even if the join table contain lot of rows. It's also less development effort for my application code.
I remain at your listening for any advice. Thanks