DEV Community

Discussion on: Soft Deletion in Database

Collapse
 
davidkroell profile image
David Kröll

Great article, I'd like to share some additional solution which came to my mind:

Another possible appraoch would be to create a view to apply the WHERE clause automatically, so that the deleted entries are automatically filtered when they are not used explicitely. I've already seen something similar but with a timestamp datatype, so there is additional info when the entry was deleted.

Collapse
 
amrsaeedhosny profile image
Amr Saeed

Thank you, David.

Yes, this is also a valid approach and many developers use it.