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

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

Hashid is super slow though.
What is 'super slow'? Takes milliseconds for me.
That's super slow, you could only handle a few hundred ids per second.