4 ms·
Or you can just store the UUIDs as bytes like the almighty intended.
by cbsmith 2y ago
Or you can just store the UUIDs as bytes like the almighty intended.
- vbezhenar 2y agoUUID is 128 bits. Even for huge tables 64 bits are enough. And for many tables 32 bits is more than enough.
- cbsmith 2y agoOh, 32-bits is enough for a lot of tables assuming you have a transactional ID allocator. The whole reason to have a UUID is so you don't have to serialize all your ID allocation. Agreed though that for some lower volume systems, 64-bits is likely enough to make collisions statistically unlikely.