Advanced
In reply to @matthew
Brent Fitzgerald@bf
24 days ago

you want a true globally unique ID if you're not validating uniqueness some other way (like via DB constraint). you can encode using a larger character set to get a shorter ID. Base58 is a good option, removes visually ambiguous characters: example: '2d06b29b-7b47-4ba0-8325-419277d62a09' -> '6ZUv7sYDG4LALynrXCjMGL'

In reply to @bf
Brent Fitzgerald@bf
24 days ago

(that repo is just an example, there are many generalize encoding and uuid libs available)

In reply to @bf
Matthew@matthew
24 days ago

ooh good idea, thanks!