3 ms·
Here are some reasons for using UUIDs; not apply to all businesses: - client-side generation (e.g. can reduce complexity when doing complex creation of data on
by nevir 3y ago
Here are some reasons for using UUIDs; not apply to all businesses:
- client-side generation (e.g. can reduce complexity when doing complex creation of data on the client side, and then some time later actually inserting it into to your db)
- sequential ids leak competitive information: https://en.wikipedia.org/wiki/German_tank_problem https://en.wikipedia.org/wiki/German_tank_problem
- Global identification (being able to look up an unknown thing by just an id - very useful in log searching / admin dashboards / customer support tools)
- int_19h 3y agoIt's also much easier to merge data from different sources when they all use UUIDs for row identification.