|
|
|
|
|
by magicalhippo
765 days ago
|
|
We make a B2B application that's installed on-prem for a lot of customers. We do hard deletes on most things, mainly due to legacy reasons, and almost every week we get a request to restore data that a user deleted but later realized they needed. And quite often the user realizes this after a week or more, at which point the only option is for the user to ask their IT to restore the DB from backup so we can extract the data from there. So adding soft deletes to the tables the users commonly do mistaken deletes from is something we're planning on doing. I don't see the alternatives given in the article would work for us. For example few of our customers even have a data warehouse. Our current DB doesn't support temporal tables, though we are migrating to MSSQL which does, so that might be an option soon. Though unclear how well it works with 3-4 levels of child tables which would also need to be temporal, especially since we need to do hard deletes due to GDPR etc and we have customers who work 24/7 so regular downtime is not tolerated. And users will have active locks against these key tables, not sure how that'll work out with the schema changes needed for hard deletes. |
|
I have never implemented this, but I feel like it would work well (including not having to specify a deleted_date IS NULL on every query)