logoalt Hacker News

mahboi • yesterday at 6:25 PM • 2 replies • view on HN

For a database primary key, yeah. Just use serial.


Replies

F_r_k • yesterday at 7:58 PM

I don't want my competitors to know about my number of clients, etc.

➕ show 1 reply
esafak • yesterday at 6:50 PM

That depends on your database. Serial keys can create hot spots in distributed databases because new writes are consistently directed to the same partition.

➕ show 3 replies