I\'m wondering what a better design is for the intersection table for a many-to-many relationship.
The two approaches I am considering are:
CREATE TA
Use version-1 if your "intersection" actually IS an entity on its own, meaning:
User version-2 if it is purely N-M relation table. In which case also make sure that:
you can still have another one-column UNIQUE identifier, but just:
In both cases you may want to create another INDEX covering the 2 columns, but in another order, if you search from the other side of the relation often.