3 ms·
> Every single time I've seen a primary key being defined with a natural key, it turned out that this set of attributes wasn't as immutable as we thought actual
by hot_gril 4y ago
> Every single time I've seen a primary key being defined with a natural key, it turned out that this set of attributes wasn't as immutable as we thought actually and it caused a world of pain.
Yep, happens to the best of us. Never mess around with this, just use a bigserial.
- hot_gril 4y ago(Or other things like UUIDs, which I would not use, are still way better than semantic keys.)