Thinking Elixir Podcast cover image

22: Running migrations in production with Patryk Bąk

Thinking Elixir Podcast

00:00

Migrating Data

The idea of not using our elixir code, the structs and things that are modeling the data in our application during migrations. When you deploy changes to the production and the system starts up, the new migration is run in a transaction. It means that until the whole process of migrating data is finished, the changes entered by the migration are not visible by the system. What if the table which migration updates contains thousands of records or even more? Then it can take several minutes, sometimes hours, and during that time, for instance users won't be able to register themselves.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app