We started by running a database on prem
… We started by running a database on prem. Each branch or store got their own db. 15 years later always-on networking happened. 15 years after that, all businesses have fibre. So now all the branches use a giant shared online database. With merged data. Uuid based this task would be trivial. Bigint based, yeah, it's not. Along the same timeline data started escaping from our database. It would go to a phone, travel around a bit, change, get new records, then come home. Think lots of sales folk, in places without reception, doing stuff. So you're right in the context of a single database (cluster) which encompasses all the data all the time. But in the context where data lives beyond the database, using uuids solves a lot of problems. There are other places as well where uuids shine. So as with most advice when it comes to SQL, I'd add "context matters".
Original discussionThe UX of UUIDs206 source comments · at import