Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

cuid removes more of the randomness adds a counter and a fingerprint: https://github.com/ericelliott/cuid

The default id in MongoDB does about the same. I always thought the MongoDB identifiers worked well for a lot of use cases.

Its also worth mentioning that integer incrementing ids can scale just fine if you reserve them in large blocks and they are no longer guaranteed to match insertion order, e.g: https://github.com/pingcap/docs/blob/master/sql/mysql-compat...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: