News for hackers. Stuff that matters.
Re:Yagri: You are gonna read it by hnbad on Monday April 28, 2025 @05:19AM (#43819231)
Soft deletes can be done in a GDPR-compliant way. But transparency is key.

The problem of course is that soft deletes are hard. As soon as you take sub-resources and relations into considerations, especially with shared ownership, things get complicated. SQL databases can usually handle cascading deletes and nulling but that doesn't work with soft deletes - also, if a soft delete exists to allow for a restore, how do you handle references you would null in an actual delete? Now you need to either track the deleted value or add logic to every query involving that reference to filter out soft deletes in addition to null references (which adds query complexity).

There are no comments on this comment yet.