Hacker News new | ask | show | jobs
by stcredzero 5716 days ago
I've accidentally truncated a database table in a dev environment, bringing all sorts of testing and development to a halt and making my manger's life miserable for a few days. (Due to some really bad menu design in an admin tool. Instead of a right-click for "Renaming" a column, there should have been an indication that a table truncate would be happening in there somewhere.)

I would never have agony in my face about it, perhaps because the event wasn't "irreparable." The database was just reloaded from production. My first answer to your question would be "never" because the event really wasn't consequential. In fact, I'd question just how "professionally" run an organization is if a data deletion event is of dire consequence. Anything important should be backed up and easily restorable.

Some decades back, someone did a study of companies that had some disaster happen. (Fire, flood, etc...) Of the ones that lost their data, only something like 3% of them survived the next year. Digital data is the most easily backed up corporate asset and probably the most important.

(To keep it from happening again, I'd use a different tool entirely, if given a choice. In that case, I wasn't!)

1 comments

A very professional answer! You'd be surprised at the number of organizations and individuals that don't have some sort of backup solution in place, so the question will also filter out those. Even if you have backups or the data isn't 'irreparably' lost I'd imagine you agonized a bit from causing your coworkers a few days of pain, or if you need to restore from backups, perhaps a few hours of downtime? I guess I should change my question from using the word irreparably.