3 ms·
As a warning, don't try to be too clever with your ID system. You can get collision bugs that aren't usually visible in testing. I had a catastrophic bug (ala
by chris_va 12y ago
As a warning, don't try to be too clever with your ID system. You can get collision bugs that aren't usually visible in testing.
I had a catastrophic bug (ala private data going to the wrong person) from 96-bit (32 bit segment number, 64 bit random local docid) ID collisions when the caching code decided it was going to use docid as the cache key without realizing it was missing a bunch of bits.