Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hardwaresofton
9 months ago
|
parent
|
context
|
favorite
| on:
'123456' password exposed chats for 64M McDonald's...
You could also "just" have an internal-use only numeric ID, or use a UUIDv7.
redhale
9 months ago
|
next
[–]
TIL about UUIDv7 -- thanks!
hardwaresofton
9 months ago
|
parent
|
next
[–]
No worries! It's just now finally starting to get everywhere -- Postgres is going to get it in 18 by the looks of things :)
https://www.postgresql.org/docs/18/functions-uuid.html
sam_lowry_
9 months ago
|
prev
[–]
or ULIDs or any other partially sortable ids.
sebazzz
9 months ago
|
parent
|
next
[–]
ULID are not necessarily sortable, just UUIDs consensed in a shorter string by using more characters than 0-9A-F
sam_lowry_
9 months ago
|
root
|
parent
|
next
[–]
ULID = Unique Lexicographically sortable IDentifier ;-)
jszymborski
9 months ago
|
parent
|
prev
[–]
ULIDs are sorta the opposite of the HMAC method, where you can't query for the nth ID, but you can sort the IDs.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: