how to set postgresql command timeout in rails -



how to set postgresql command timeout in rails -

i'm using heroku , heroku postgresql. how set db command timeout exception when sql command takes longer 10 seconds?

configure database.yml this, key bit beingness variables hash:

defaults: &default adapter: postgresql encoding: unicode pool: 5 min_messages: warning variables: statement_timeout: 5000

ruby-on-rails postgresql heroku

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

r - url in CRAN extension manual -

asp.net - .NET Control.ID property inconsistency -