Re:Common data model mistakes made by startups
by quietbritishjim on Saturday May 22, 2021 @06:44PM
(#27250919)
That would just make the data loss problem worse still. I realise OP just chose an arbitrary example, but if you really are talking about users and orders, and if you delete a user, then really deleting the records for their associated orders is even worse than losing track of who made them.
[ Parent
| on HN ]
Re:Common data model mistakes made by startups
by irrational on Saturday May 22, 2021 @09:46PM
(#27251791)
I realize you might not be familiar with how database constraints work, but an on delete no action would totally prevent the user from being deleted. You literally cannot delete the user and their associated orders will definitely not be deleted.