about summary refs log tree commit diff
path: root/config/database.yml
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-12-03 01:32:27 +0100
committerGitHub <noreply@github.com>2018-12-03 01:32:27 +0100
commit58a29db99d410771f62ffb9e8c2ce95e1d3cb4ae (patch)
tree3f32810872317784470faf6d62ca4508f6184560 /config/database.yml
parent6ddf0432e71aea7c62f1ee7946da5538d2526a13 (diff)
Add database statement timeout of 60s (#9382)
Diffstat (limited to 'config/database.yml')
-rw-r--r--config/database.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/database.yml b/config/database.yml
index 82e560515..90133881a 100644
--- a/config/database.yml
+++ b/config/database.yml
@@ -3,6 +3,8 @@ default: &default
   pool: <%= ENV["DB_POOL"] || ENV['MAX_THREADS'] || 5 %>
   timeout: 5000
   encoding: unicode
+  variables:
+    statement_timeout: 60000
 
 development:
   <<: *default