News for hackers. Stuff that matters.
Re:Instead of deleting account, NYT appends ‘1000’ to userna... by koheripbal on Tuesday April 28, 2020 @11:45AM (#23008133)
Regardless of the constraint on the key, the design fact remains that deleting a user record that might, for example, have associated transaction data (like subscription payments) is a little complex.

You don't want to cascade that deletion to a record of credit card charges, but you also need to make sure that all queries respect that the user record might now be deleted - ie make it an outer-join.

It's far more robust to add an active/inactive field.

The longer an organization has been around, the more interconnected the database is, and the more consequent changes are needed to accommodate a core database change.

I would be surprised if many many organizations have some hack like this under the covers.

Re:Instead of deleting account, NYT appends ‘1000’ to userna... by nitrogen on Tuesday April 28, 2020 @12:03PM (#23008346)
Do active/inactive fields comply with data privacy laws like those in California and the EU?
Re:Instead of deleting account, NYT appends ‘1000’ to userna... by akx on Tuesday April 28, 2020 @12:27PM (#23008628)
IANAL, but if you anonymize (not just pseudonymize) the PII from the user table (and others) I think so, yeah.