Answer the question
In order to leave comments, you need to log in
What is the best way to add the date of adding and editing to the database from yii2 for speed, database trigger or behavior?
In yii2 there is a behavior with which the date is added to the database when a post is saved or updated.
But you can use mysql or postgresql database triggers to add dates to the required fields during insert or update
. Does it make sense to use triggers and is there an increase from this, or maybe vice versa?
Answer the question
In order to leave comments, you need to log in
Does it make sense to use triggers and is there an increase from this, or maybe vice versa?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question