How does stack overflow generate user ids?
Judging by the number of digits in ids, it seems they have more than a million users.
How do they handle id collisions?
How does stack overflow generate user ids?
Judging by the number of digits in ids, it seems they have more than a million users.
How do they handle id collisions?
They just use sequential ids. You can tell by checking the user with id of 1. It's not random. Now they probably wouldn't have to worry about collisions as long as the id sequence is determined in one server.
4 SQL Servers
section: Stack Overflow -> RAM: 1.5 TB • DB size: 2.8 TB? Thank you!