mix phoenix_mountable.backfill (PhoenixMountable v0.2.1)

Copy Markdown View Source

Runs a library's deferred backfills to completion.

$ mix phoenix_mountable.backfill MyLib.Migrations

Progress is recorded after every batch, so it can be stopped and run again. In production, PhoenixMountable.Backfill.Runner does the same in the running app.

Options

  • -r, --repo — the repo (defaults to the app's :ecto_repos)
  • --prefix — the prefix
  • --throttle — milliseconds to wait between batches