Are there valid reasons to use UUID (assuming correctly) for primary key? I know systems have incorrectly expose primary key to the public, but assuming that's not the concern. Why use UUID over big-int?
Are there valid reasons to use UUID (assuming correctly) for primary key? I know systems have incorrectly expose primary key to the public, but assuming that's not the concern. Why use UUID over big-int?
UUIDv7 looks really promising but I'm not likely to redo all of our tables to use it.
Main reason I use it is the German Tank problem: https://en.wikipedia.org/wiki/German_tank_problem
(tl;dr; prevent someone from counting how many records you have in that table)
This way you avoid most of the issues highlighted in this article, without compromising your confidential data.
Someone may or may not have used the pattern to get to know the attrition rate through running a simple script every month))
https://cloud.google.com/blog/products/databases/announcing-...