|
|
|
|
|
by newaccount74
1057 days ago
|
|
Doesn't that just add a whole lot of unnecessary complexity? If elements have multiple IDs, one of which should not be leaked to the outside, that's just asking for trouble in my opinion. Is generating UUIDv4 or UUIDv7 really too much effort? I'd assume that writing the row to the database takes longer than generating the UUID. |
|
If I'm in a scenario where I think I need consecutive ids internally and random ones externally, I'll just have two fields in my tables.