News for hackers. Stuff that matters.
Re:Inside the longest Atlassian outage by jacquesm on Wednesday April 13, 2022 @01:22PM (#31017403)
Better still: a field that registers at what date a record was supposedly marked as deleted. Because otherwise you still can't bulk recover from an error.
Re:Inside the longest Atlassian outage by a-dub on Wednesday April 13, 2022 @01:35PM (#31017574)
yep. but at least in the rdbms case, and probably in all cases, a flag (and an index on it) tends to be essential for query performance since the state of the flag will appear in most, if not all queries.

that's okay though, queries that reference the timestamp can be slow since they're housekeeping.

Re:Inside the longest Atlassian outage by cerved on Wednesday April 13, 2022 @07:45PM (#31021723)
if the goal is the ability to rollback a certain delete, it's probably better to make it a nullable fk on a delete event with a timestamp.

But a nullable timestamp could also be viable, just can't tell two different delete, at the same time, apart

Re:Inside the longest Atlassian outage by cerved on Wednesday April 13, 2022 @07:40PM (#31021683)
to bulk recover only x >= y ?