4 ms·
How did you handle the autoincrement id problem with distributed databases? Did you replace them with hashes?
by furiouslol 18y ago
How did you handle the autoincrement id problem with distributed databases? Did you replace them with hashes?
- eries 18y agoWhen absolutely necessary, we would solve this by keeping global (centralized) ID's in an autoincrement table either on the master or on a vertical shard. It didn't come up that often, because most tables (in our app) are really dedicated to one specific entity (ie a customer's inventory items).