Hacker News
new
past
comments
ask
show
jobs
points
by
simonbuilds
15 hours ago
|
comments
by
vbezhenar
12 hours ago
|
next
[-]
I prefer to use int16/int32/int64 IDs for primary keys and UUIDv4 for "visible" keys. So database always uses integer fields to refer to other rows and web API uses UUID.
reply
by
tyre
14 hours ago
|
prev
|
[-]
Do you care about users knowing
when
another business was put into the system (e.g. how long they've been with you"? If yes, v4. If no, v7.
v4 is less efficient but more private.
reply