which is more efficient making Database triggers or handling all trigger events at front end

StackOverflow https://stackoverflow.com/questions/18755838

質問

I am working in a c#.net application
I am working on a project of school management

I had some entries in more than one tables some times so is it better to handle this in front end or I should use database trigger for this .
can you tell which thing is better in performance and time efficient

役に立ちましたか?

解決

If those triggers affect database integrity or data integrity (checking things, inserting other records, making backup copies of records before modification or maybe something else) then it should be database triggers, because you never know how many of your frontends will operate on the database at a given time and syncronizing them by yourself is a huge pain in the ... and it's also prone to errors while you already have a less-painful and less error-prone method at hand.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top