In config/<env>.exs
(where <env>
is dev
, test
, or prod
):
config :my_app, MyApp.Repo,
adapter: Ecto.Adapters.Postgres,
pool_size: 10,
migration_timestamps: [type: :utc_datetime_usec],
migration_lock: nil,
queue_target: 5000
Is what we had to do recently due to increased number of errors in production.