Live data from Hacker News

I Dropped the Production Database on a Friday Night

vince.beehiiv.com

1–10 of 67 posts

Re: I Dropped the Production Database on a Friday Night

#3
I hope the poster will learn about transactions at some point. Postgres even lets you alter the schema within a transaction.

What 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

#6
I 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!

Re: I Dropped the Production Database on a Friday Night

#7
I dunno. The effort needed to ensure you have backups is tiny compared to the work done to create the product. And to pull a backup before deleting stuff in production only needs a smidgen of experience.

They 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

#9

I 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!

I got deep pangs of pain and anguish for you and everyone involved. These lessons hurt so much to learn the hard way.

Re: I Dropped the Production Database on a Friday Night

#10
Developing directly on the production database with no known backups. Saved from total disaster by pure luck. Then a bunch of happy talk about it being a "small price to pay for the lessons we gained" and how such failures "unleash true creativity". It's amazing what people will self-disclose on the internet.
Post reply on HN