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

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

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