I want to see your opinion on this issue.
I’m using MySQL database for my projects, and in almost every table, I have a column called Status defined (ENUM(‘active’,’inactive’,’deleted’)).
I do this for performance reasons, so whenever a row is not needed(deleted), I set it to ‘deleted’ instead of actually deleting it from the DB. This has proven fairly good.
But, now I always have to write PHP functions in my projects for updating a row from Active to Deleted.
What do you think, how can I solve this using MySQL triggers or using other technique?
Thank you
What’s wrong about updating a row to set it to deleted?
After all,
vs
do not make much of a difference or does it?