3 ms·
Uuids have next to no chance for duplicates and are safe for usage in all languages. integers can cause problems if your system that use the numeric ids use the
by stop50 4y ago
Uuids have next to no chance for duplicates and are safe for usage in all languages.
integers can cause problems if your system that use the numeric ids use the wrong type.
you can run into this with javascript, which can cause problems. Integers can also cause problems with databases, mysql splits the space of possible ids between all servers in a cluster. So when one db server is more used for creating records you are wasting space.
integers can also create problems if the datatype is too small.