2 ms·
But why would you need to let the library prefix the ID if you can just prefix it yourself right after the UUID call?
by amelius 2y ago
But why would you need to let the library prefix the ID if you can just prefix it yourself right after the UUID call?
- carderne 2y agoMain reason would be that every dev must then remember to add/strip a prefix at some boundary around the DB, which I think would be pretty error prone. A more minor benefit maybe is that they're natively presented with the prefix in the DB, so eg communicating with non-technical team while running SQL queries doesn't involve constantly adding/removing prefixes...