|
|
|
|
|
by vbsteven
1844 days ago
|
|
I’m currently prototyping a little database+api+cli todo app and I want identifiers that can be abbreviated in the same way as partial git commit hashes can be used on the command line. What should I use? I was thinking of generating random character strings and simply retry when the db throws duplicate key error on insert. No sharding is necessary and I’d like to have efficient foreign keys. Any thoughts? |
|
[0] https://blog.bibekkakati.me/nanoid-alternative-to-uuid