January 2019
Intermediate to advanced
286 pages
7h 41m
English
Using trigger is acceptable for any application, but when it comes to the delete trigger, I recommend you avoid it. One of the reasons is that it's very hard to regain data once it is deleted, as restoring a table from backup that has a set of stale data is not advisable at all, as it might incur data inconsistencies from that table with others. In this case, you would have to restore the entire MySQL database, which is stale, resulting in lost trust from users, and frustrating them.
For example, due to business requirements, if the corresponding data is deleted through a trigger that might have a dependency on a new feature, it would be really hard to regain that data. Moreover, new developers might miss this, ...
Read now
Unlock full access