4 ms·
I literally just read a very convincing post, with good examples, on why relying solely on natural keys is rarely a good idea. Nothing in that repo convinced me
by wizofaus 3y ago
I literally just read a very convincing post, with good examples, on why relying solely on natural keys is rarely a good idea. Nothing in that repo convinced me otherwise (and alarm bells certainly went off when I saw a table called Species where the primary key was a varchar field "Species" with values like "cat" and "raccoon", neither of which are species at all).
- wolfgang42 3y agoWe just had https://matt-schellhas.medium.com/unnatural-keys-425a68ee350c https://matt-schellhas.medium.com/unnatural-keys-425a68ee350... on HN a couple of weeks ago, too: https://news.ycombinator.com/item?id=36101544 https://news.ycombinator.com/item?id=36101544
- wizofaus 3y agoYep, that was the exact article I'd read!