Y
Hacker News
new
|
ask
|
show
|
jobs
by
dbbk
1842 days ago
I’ve stuck with incremental values internally but use Hashid to convert them when exposed publicly. Seems to work well.
2 comments
conradfr
1842 days ago
Yes, I completely forgot about it. I used it a few years ago, I tried also [1] which is integers instead of strings.
[1]
https://github.com/jenssegers/optimus
link
zepolen
1842 days ago
Hashid is super slow though.
link
dbbk
1841 days ago
What is 'super slow'? Takes milliseconds for me.
link
zepolen
1839 days ago
That's super slow, you could only handle a few hundred ids per second.
link
[1] https://github.com/jenssegers/optimus