I just want to know which of this two structures is the best for better performance:
- Full HABTM (many to many), but with a very big join table (so only one association for query)
- Or, HABTM + 1 hasOne (which reduce significantly the join table rows (equal to number of main entity, approximatively 50 000rows) ? But this method forced me to do a query with 2 associations.
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 ?