Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

At a previous job the DB admin mandated that everyone had to write queries that would create a temporary table containing a copy of all the rows that needed to be deleted. This data would be inspected to make sure that it was truly the correct data. Then the data would be deleted from the actual table by doing a delete that joined against the copied table. If for some reason it needed to be restored, the data could be restored from the copy.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: