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 -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -