3 ms·
Just for curiosity, how would YT deal with ID collision ? Edit: Before the scheme change I mean
by ktm8 5y ago
Just for curiosity, how would YT deal with ID collision ?
Edit: Before the scheme change I mean
- root_axis 5y agoTry again? Just a guess.
- remram 5y agoProbably they just roll again. You can even implement that in a stored procedure.
- quantumofalpha 5y agoNot sure about technical details for that but perhaps something like https://vitess.io/docs/reference/features/vitess-sequences/ https://vitess.io/docs/reference/features/vitess-sequences/. Vitess itself is a project that grew out of YouTube's needs to scale and shard their MySQL DB.
- Thorrez 5y ago>base64'ed DES-encrypted primary int64 Block ciphers (such as DES) don't collide. If they did there would be no way to decrypt them because a block could be decrypted into multiple valid plaintexts.