4 ms·
Two benefits of UUIDs: 1. You can create a series of related rows without hitting the DB to obtain the next integer. 2. During development, if you mix up ids
by okl 4y ago
Two benefits of UUIDs:
1. You can create a series of related rows without hitting the DB to obtain the next integer.
2. During development, if you mix up ids you will get an error/empty result. With integer keys you might get a row you didn't intend to get, hiding the error.