I Dropped the Production Database on a Friday Night
vince.beehiiv.com
I Dropped the Production Database on a Friday Night
1–10 of 67 posts
Re: I Dropped the Production Database on a Friday Night
#2Re: I Dropped the Production Database on a Friday Night
#3What I learned, once upon a time, is that with a database, you shouldn't delete data you want to keep. If you want to keep something, you use SQL's fine UPDATE to update it, you don't delete it. Databases work best if you tell them to do what you want them to do, as a single transaction.
Re: I Dropped the Production Database on a Friday Night
#4Re: I Dropped the Production Database on a Friday Night
#5Of course - there are exceptions (gdpr deletion rules etc)
Re: I Dropped the Production Database on a Friday Night
#6Re: I Dropped the Production Database on a Friday Night
#7They were extremely lucky. Imagine what the boss would have said if they hadn't managed to recover the data.
Re: I Dropped the Production Database on a Friday Night
#8Don’t fuck your database up and do have point-in-time rollbacks. No excuses it’s not hard. Not something to be proud of.
Re: I Dropped the Production Database on a Friday Night
#9I dropped the production database at the first startup I worked at, three days after we went live. We were scrappy™ and didn’t have backups yet, so we lost all the data permanently. I learned that day that running automated tests on a production database isn’t a good idea!