|
|
|
|
|
by staticassertion
1851 days ago
|
|
I think ideally your primary key is whatever makes sense for your performance/data model, and then if you want to delegate authority with UUIDs you do that via a separate mapping. By separating that out you can get a lot: 1. You can extend your delegate system by modifying the delegate table, rather than having to muddy your data model with authority information 2. You can TTL the mappings in the delegate table 3. You can have many mappings to the same data, but each one can have its own restrictions. It's a bit more complex but you end up with a system that really hones in on the benefit that you're bringing up. |
|