AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
How to Hide a Random Number in a Social Network
We wanted some random numbers but like not real random numbers. So if you take two mutually prime numbers and just multiply sequence value by one of them, you will have like looking like kind of random numbers but it will not be really random numbers. We used this approach for all our surrogate primary keys. And that's it. It was a single primary. But in the second social network, I co-founded a few years ago, later. We used the same approach and then we ended up having a real nasty problem for the first time. When your table is growing very fast, 2.1 billion records if you use integer 4 primary key. You cannot insert, POSGIS cannot insert