Distributed system design Flashcards

1
Q

Is using triggers a good idea? what is the impact of triggers if they are used to capture the change data

A

Triggers should not be used to capture the change data (i.e. insert, update and delete) operation on a table. Triggers are executed synchronously whenever any of these operations are executed which impacts the performance of database. If trigger fails then the corresponding insert, update or delete operation also fails.

So triggers should not be used as a change data capture method.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly