UPDATE orders
SET is_deleted = true
I mean, you didn't really delete the orders... does anyone DELETE things now a days?
I mean, you didn't really delete the orders... does anyone DELETE things now a days?
UPDATE orders SET deletion_timestamp = CURRENT_TIMESTAMP() WHERE deletion_timestamp IS NULL
Yes. OLTPs work best when cold data is hard deleted from the hot instances. Backups and OLAP can keep things for longer, as needed. GDPR, right to be forgotten, and similar regulations may require deleting even scrubbed copies. (IANAL)