|
|
|
|
|
by itslennysfault
870 days ago
|
|
I would never advise this. I use UUIDv4 for basically everything. It adds minimal overhead to small systems and adds HUGE benefits if/when you need to scale. If you need to sort by creation date use a "created" column (or UUIDv7 if appropriate). If your system ever becomes distributed you will sing the praises of whoever choose UUID over an int ID, and if it never becomes distributed UUID won't hurt you. Note: this is for web systems. If it's embedded systems then the overhead starts to matter and the usefulness of UUID is probably nil. |
|
Less of an issue if you have total control of the operational environment and code base, but that is not always the case.