commanded / eventstore

Event store using PostgreSQL for persistence
MIT License
1.06k stars 146 forks source link

Default query timeout configuration #188

Closed slashdotdash closed 4 years ago

slashdotdash commented 4 years ago

By default a 15 second query timeout is used when no timeout option is passed to any event store function. This default should be configurable per event store module.

Configure when defining an event store:

defmodule MyApp.EventStore do
  use EventStore, 
    otp_app: :my_app, 
    timeout: 120_000
end

Or via config:

# config/config.exs
config :my_app, MyApp.EventStore, timeout: 120_000