4 ms·
cuid removes more of the randomness adds a counter and a fingerprint: https://github.com/ericelliott/cuid https://github.com/ericelliott/cuid The default id in
by gregwebs 8y ago
cuid removes more of the randomness adds a counter and a fingerprint:
https://github.com/ericelliott/cuid 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-compatibility.md#auto-increment-id https://github.com/pingcap/docs/blob/master/sql/mysql-compat...