~/talk

Strategies to Edit Production Data

Talkat PyCon 2018 · on Friday, 2018-05-11· [devops-and-delivery, databases]

Five concrete strategies progress from maintaining a google spreadsheet of raw SQL edits to running Python scripts locally, copying them to an EC2/Jenkins host, using a task runner like Jenkins, and finally shipping a custom Script Runner service. Examples show SQL mistakes, a real migration over ~50 million products, CPU and credential problems, how audit logs and code review get enforced, and how centralizing credentials, environment separation, parallel execution and preview modes make edits safer and reproducible.

AI-written summary · about

  1. 0:00Intro
  2. 0:21Strategies to Edit Production Data
  3. 1:36Why We Edit Production Data
  4. 5:18How the strategy works What's great What's not great
  5. 5:40Develop a Review Process for Manual Edits
  6. 5:58UPDATE products SET name='julies-product' WHERE id=1
  7. 10:15Run Scripts Locally
  8. 10:543. Run the script
  9. 12:29Network disconnections
  10. 13:53Run Scripts on an Existing Server
  11. 14:493. SSH and run inside a session
  12. 18:18Use a task runner
  13. 19:45Code review and automated tests
  14. 22:13Build a Script Runner Service
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.