|
|
|
|
|
by AlisdairO
1155 days ago
|
|
Table User:
userid, etc Table Resources:
resourceid, userid, etc If I want to restrict deletion of a user to only be possible after all the resources are deleted, I'm forced into using higher-than-default isolation levels in most DBs. This has significant performance implications. It's also much easier to make a mistake - for example, if when creating a resource I check that the user exists prior to starting the transaction, then start the tran, then do the work, it will allow insertion of data into a nonexistent user. |
|