Listen "22: Running migrations in production with Patryk Bąk"
Episode Synopsis
We talk with Patryk Bąk about running migrations in production. For production systems where downtime or service interruptions are a problem, we sometimes need to take special care when migrating data structures or the data itself. Patryk shares some valuable tips and techniques along with examples of when to use them. We chime in with war stories, our own tips, and mistakes we've made. A great resource when migrating data in your own systems. Check it out!
Show Notes online - http://podcast.thinkingelixir.com/22 (http://podcast.thinkingelixir.com/22)
Elixir Community News
- https://github.com/phoenixframework/phoenixliveview/pull/1184 (https://github.com/phoenixframework/phoenix_live_view/pull/1184) – LiveView uploads officially lands in master
- https://github.com/mcrumm/liveuploadexample (https://github.com/mcrumm/live_upload_example) – LV upload example
- https://github.com/phoenixframework/phoenixliveview/blob/master/guides/client/uploads-external.md (https://github.com/phoenixframework/phoenix_live_view/blob/master/guides/client/uploads-external.md) – LV upload guide for client side
- https://github.com/phoenixframework/phoenixliveview/blob/master/guides/server/uploads.md (https://github.com/phoenixframework/phoenix_live_view/blob/master/guides/server/uploads.md) – LV upload guide for server side
- https://getoban.pro/ (https://getoban.pro/) – Oban Pro v0.5.1 adds cancel support and a new Workflow module
- https://github.com/axelson/dep_viz (https://github.com/axelson/dep_viz) – Jason Axelson launched DepViz
- https://dep-viz.herokuapp.com/ (https://dep-viz.herokuapp.com/) – DepViz online
- https://www.codebeambr.com/ (https://www.codebeambr.com/) – CodeBEAM Brazil happened - look for videos soon?
Do you have some Elixir news to share? Tell us at @ThinkingElixir (https://twitter.com/ThinkingElixir) or email at [email protected] (mailto:[email protected])
Discussion Resources
- https://patrykbak.com/2020/06/15/why-should-not-you-use-elixir-code-in-database-migrations.html (https://patrykbak.com/2020/06/15/why-should-not-you-use-elixir-code-in-database-migrations.html)
- https://patrykbak.com/2020/05/28/how-to-migrate-live-production-data.html (https://patrykbak.com/2020/05/28/how-to-migrate-live-production-data.html)
- https://appunite.com (https://appunite.com) – AppUnite
- https://dashbit.co/blog/automatic-and-manual-ecto-migrations (https://dashbit.co/blog/automatic-and-manual-ecto-migrations)
- https://www.postgresql.org/docs/9.2/sql-createview.html (https://www.postgresql.org/docs/9.2/sql-createview.html) – PostgreSQL views
Guest Information
- https://twitter.com/patrykbak91 (https://twitter.com/patrykbak91) – on Twitter
- https://github.com/patrykbak91 (https://github.com/patrykbak91) – on Github
- https://patrykbak.com (https://patrykbak.com) – Blog
Find us online
- Message the show - @ThinkingElixir (https://twitter.com/ThinkingElixir)
- Email the show - [email protected] (mailto:[email protected])
- Mark Ericksen - @brainlid (https://twitter.com/brainlid)
- David Bernheisel - @bernheisel (https://twitter.com/bernheisel)
- Cade Ward - @cadebward (https://twitter.com/cadebward)
Show Notes online - http://podcast.thinkingelixir.com/22 (http://podcast.thinkingelixir.com/22)
Elixir Community News
- https://github.com/phoenixframework/phoenixliveview/pull/1184 (https://github.com/phoenixframework/phoenix_live_view/pull/1184) – LiveView uploads officially lands in master
- https://github.com/mcrumm/liveuploadexample (https://github.com/mcrumm/live_upload_example) – LV upload example
- https://github.com/phoenixframework/phoenixliveview/blob/master/guides/client/uploads-external.md (https://github.com/phoenixframework/phoenix_live_view/blob/master/guides/client/uploads-external.md) – LV upload guide for client side
- https://github.com/phoenixframework/phoenixliveview/blob/master/guides/server/uploads.md (https://github.com/phoenixframework/phoenix_live_view/blob/master/guides/server/uploads.md) – LV upload guide for server side
- https://getoban.pro/ (https://getoban.pro/) – Oban Pro v0.5.1 adds cancel support and a new Workflow module
- https://github.com/axelson/dep_viz (https://github.com/axelson/dep_viz) – Jason Axelson launched DepViz
- https://dep-viz.herokuapp.com/ (https://dep-viz.herokuapp.com/) – DepViz online
- https://www.codebeambr.com/ (https://www.codebeambr.com/) – CodeBEAM Brazil happened - look for videos soon?
Do you have some Elixir news to share? Tell us at @ThinkingElixir (https://twitter.com/ThinkingElixir) or email at [email protected] (mailto:[email protected])
Discussion Resources
- https://patrykbak.com/2020/06/15/why-should-not-you-use-elixir-code-in-database-migrations.html (https://patrykbak.com/2020/06/15/why-should-not-you-use-elixir-code-in-database-migrations.html)
- https://patrykbak.com/2020/05/28/how-to-migrate-live-production-data.html (https://patrykbak.com/2020/05/28/how-to-migrate-live-production-data.html)
- https://appunite.com (https://appunite.com) – AppUnite
- https://dashbit.co/blog/automatic-and-manual-ecto-migrations (https://dashbit.co/blog/automatic-and-manual-ecto-migrations)
- https://www.postgresql.org/docs/9.2/sql-createview.html (https://www.postgresql.org/docs/9.2/sql-createview.html) – PostgreSQL views
Guest Information
- https://twitter.com/patrykbak91 (https://twitter.com/patrykbak91) – on Twitter
- https://github.com/patrykbak91 (https://github.com/patrykbak91) – on Github
- https://patrykbak.com (https://patrykbak.com) – Blog
Find us online
- Message the show - @ThinkingElixir (https://twitter.com/ThinkingElixir)
- Email the show - [email protected] (mailto:[email protected])
- Mark Ericksen - @brainlid (https://twitter.com/brainlid)
- David Bernheisel - @bernheisel (https://twitter.com/bernheisel)
- Cade Ward - @cadebward (https://twitter.com/cadebward)
More episodes of the podcast Thinking Elixir Podcast
283: Erlang Turns 27 and React at Risk
16/12/2025
282: Type Systems and View Transitions
09/12/2025
281: Planning for the Unexpected
02/12/2025
280: Dark Matter Developers
25/11/2025
279: Hot Code Upgrades and Hotter AI Takes
18/11/2025
278: WAL-ing Through Database Changes
11/11/2025
277: Searching Across the Hexiverse
04/11/2025
276: Elixir v1.19 Types and Speed
28/10/2025
275: From Slop to Success?
21/10/2025
274: Protocols, Permissions, and Performance
14/10/2025
ZARZA We are Zarza, the prestigious firm behind major projects in information technology.