3 ms·
> If you don't override it, then your IDs won't decode right when you update. They'll decode fine. Encoding might change.
by wtetzner 3y ago
> If you don't override it, then your IDs won't decode right when you update.
They'll decode fine. Encoding might change.
- 8organicbits 3y agoI think your right, but that violates the uniqueness guarantee. It doesnt seem like something that should change over time by default.
- dumbo-octopus 3y agoThere explicitly is no uniqueness guarantee. It is known that the same values can encode into many different strings, and they recommend always decoding then reencoding with a stable algorithm to achieve a "canonical" id if one is needed. https://sqids.org/faq#valid-ids https://sqids.org/faq#valid-ids