3 ms·
I don’t recommend using random bytes for this. What I have done in my previous projects is take a uuid6, reserve a couple of bytes inside of it to replace with
by scrollaway 2y ago
I don’t recommend using random bytes for this. What I have done in my previous projects is take a uuid6, reserve a couple of bytes inside of it to replace with an object ID, and I convert that to obj_XXXXXXX.
This means you can store them in the db not as a string but as a uuid, which is a lot more performant. You also get time stamping for free.