Search⌘ K
AI Features

Run Migrations Outside of a Transaction

Explore how to run Ecto migrations outside of database transactions to enable concurrent index changes. Understand when to disable migration locks and apply changes carefully to maintain database integrity during large or complex updates.

Disable transactional behavior

By default, migrations are run within a database transaction. This is a good thing. If any part of our migration has an error, we can be assured that ...