Hacker News new | past | comments | ask | show | jobs | submit
For a database primary key, yeah. Just use serial.
I don't want my competitors to know about my number of clients, etc.
loading story #50214746
That depends on your database. Serial keys can create hot spots in distributed databases because new writes are consistently directed to the same partition.
loading story #50214212
loading story #50213788
loading story #50214768