Fixing web data in production: best practices for bad situations

10:45am - 11:10am on Saturday, October 7 in Madison

Aaron Knight

Audience Level:
Intermediate
Slides:
https://www.slideshare.net/AaronKnight14/fixing-web-data-in-production/1
Watch:
https://youtu.be/ohk-1MIvpmg

Overview

In a perfect world, all of the data underlying your web app is accurate, complete, and error-free. But in the real world, we sometimes need to “fix” production data. This talk is about how to update live data as safely and quickly as possible.

Description

In a perfect world, all of the data underlying your web app is accurate, complete, and error-free. But in the real world, production data sometimes needs to be updated.

Perhaps you made some bad choices when setting up your models. Or maybe a bug introduced some inconsistent data. So how do you fix it? The naïve approach might be to run an update directly on your production database, but that kind of approach is extremely risky.

This talk will outline some best practices for fixing production data. We’ll go beyond the obvious precautions such as testing your scripts and ensuring that you have a database backup. Instead, this talk will focus on writing scripts that are idempotent, reversible, and performant.

Want to edit this page?