commanded / eventstore

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

Use configurable event store query timeout for subscription queries #258

Closed slashdotdash closed 2 years ago

slashdotdash commented 2 years ago

An event store subscription makes use of the following database queries:

It is possible to configure the query timeout for an event store using the :timeout option (default 15s) or to pass it as an option when subscribing to a stream. However this option is not currently being used by the subscription when executing the above database queries. Since no timeout is being set, the default Postgrex query timeout will be used (15s). The configurable :timeout option should be used by subscription database queries.