70 words, 1 min read
As big users of PostgreSQL, we had the opportunity of re-thinking the idioms common in the world of relational DBs.
Today, I'll talk about why we stopped using serial integers for our primary keys, and why we're now extensively using Universally Unique IDs (or UUIDs) almost everywhere.
TL;DR
Use UUIDs as primary keys. They can be freely exposed without disclosing sensitive information, they are not predictable and they are performant.
continue reading on www.clever-cloud.com
⚠️ This post links to an external website. ⚠️
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.