.png)
<aside> 📌
This is sourced from: https://planetscale.com/blog/the-problem-with-using-a-uuid-primary-key-in-mysql#best-ways-to-use-a-uuid-primary-key-with-mysql
Their ENG blog is just and action movie and it’s insanely valuable.
Go check it out!
</aside>
If you're running distributed systems, you can’t avoid thinking about ID design.
They guarantee uniqueness across systems.
Perfect for distributed apps, right?
Well… not so fast.
Using UUIDs as primary keys in MySQL can slow down inserts, consume more disk space, and disrupt indexing.
Here’s why: