Databases · Middle · Question 41 of 75
What is a common downside of putting business logic in triggers?
- 1Triggers can't modify data
- ✓Correct answer: Logic becomes hidden from application code, harder to test and debug, and can slow down every write
- 3Triggers run only once a day
Explanation
Triggers are fine for things that must always happen at the data level, like audit logs or updated_at. Complex rules are usually clearer in the application.