(no title)
aaron_m04 | 5 months ago
I've also seen good advice that you should never delete anything from your DB, but rather put rows in a different soft-deleted state...
aaron_m04 | 5 months ago
I've also seen good advice that you should never delete anything from your DB, but rather put rows in a different soft-deleted state...
danpalmer|5 months ago
Having a deleted data table is a slightly easier approach I've seen, but you still need to be aware about user and legal requirements around deleting data.
thayne|5 months ago
That depends on your application and requirements. I've worked on situations where a soft delete, where any fields with sensitive customer data are overwritten with a placeholder or random data (for legal compliance reasons) was a lot simpler than doing a hard delete and leaving a bunch of dangling records with ids pointing to records that no longer exist.
And unless your data model is pretty simple, and you are ok with not having any kind of grace period before fully deleting user data, you'll probably need to build a user data deletion process either way.
hobs|5 months ago
Keep everything actually can make some things faster (though mostly slower) and give you a depth of information you didn't have, but has a big impact on storage and cost.
Most people pick some mix of tradeoffs - for the important things to audit keep every state change, for other ones get the backups out.