Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
ei8ths
3y ago
0 comments
Save
Share
I need to keep it unique, don't uuid's stay unique? I'm all ears to changing it for a smaller size.
0 comments
1 comments · 1 top-level
top
newest
oldest
wstuartcl
3y ago
https://github.com/Jakeii/nanoid-postgres
is an example of one way just pick a length that has enough space for your projected maxcount and ensure unique on the schema/index.
j
/
k
navigate · click thread line to collapse