I was traumatized by a query I did almost 20 years ago, ever since I put "LIMIT 2" on queries where i'm just manually deleting one thing... if I see 2 rows modified I know I messed up. I even do it with transactions because of the trauma.
At $PREVIOUS_JOB, we had a nightly job that deleted old users. It saved everything to temporary files, and halted if the number of users had shrunk by 10% or more.
View all comments
Show parent comment
89
u/phrotozoa Sep 22 '26
I did this in prod once. My skin crawled reading this post.