2 ms·
> I hope that's not literally incrementing a sequence It's literally incrementing it by one: https://github.com/ulid/javascript/blob/11c2067821ee19e4dc787ca4e
by sedatk 11mo ago
> I hope that's not literally incrementing a sequence
It's literally incrementing it by one:
https://github.com/ulid/javascript/blob/11c2067821ee19e4dc787ca4e0125a025485edc6/source/ulid.ts#L162 https://github.com/ulid/javascript/blob/11c2067821ee19e4dc78...
https://github.com/ulid/javascript/blob/11c2067821ee19e4dc787ca4e0125a025485edc6/source/crockford.ts#L82 https://github.com/ulid/javascript/blob/11c2067821ee19e4dc78...
- vbezhenar 11mo agoWell, that makes little sense for me, you can just use numeric identifier instead. Bulk inserts which generate identifiers in bulk are commonly used. But that's easy to fix, so just implementation quirk for this particular library, the idea is sound.
- sedatk 11mo ago> But that's easy to fix, so just implementation quirk for this particular library, the idea is sound. It's in ULID spec.