|
|
|
|
|
by crispyambulance
2594 days ago
|
|
Isn't that the primary purpose of transactions? I mean, every time you write to the database, you open a transaction, do you stuff and close it. It either works or it doesn't. If it doesn't, then it rolls back. Isn't that enough? I guess I am saying that for complex integrity checks, it should be the responsibility of the application's data layer. On the other hand what is meant by "complex"? Is it "complex" because of numerous, ever-changing applications that touch the database or is it just one application and a database with a lot of tables? In the case of wild, numerous applications, I suppose that database-side integrity controls are needed. If you really have ONE application touching the database, it might be better to have the application police integrity. Perhaps there's more than one answer? |
|