3 ms·
When is it better to use a composite primary key instead of a single unique primary key? In the context of SQL, it just seems like there are negligible storage
by nonethewiser 4y ago
When is it better to use a composite primary key instead of a single unique primary key? In the context of SQL, it just seems like there are negligible storage space differences. Obviously you can still index and have unique constraints on the columns from the would be composite index.
I sought out discussion in the past and I recall similar conclusions. I suppose it really seems superfluous for a join table but other than that it seems like a unique primary key is a good practice.