]> cat aescling's git repositories - mastodon.git/commitdiff
Add database statement timeout of 60s (#9382)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 3 Dec 2018 00:32:27 +0000 (01:32 +0100)
committerGitHub <noreply@github.com>
Mon, 3 Dec 2018 00:32:27 +0000 (01:32 +0100)
config/database.yml

index 82e560515c872a2ec0be9c03d2843707ce0180b8..90133881ad85d8ee73db2b10fc0c45f772c0152e 100644 (file)
@@ -3,6 +3,8 @@ default: &default
   pool: <%= ENV["DB_POOL"] || ENV['MAX_THREADS'] || 5 %>
   timeout: 5000
   encoding: unicode
+  variables:
+    statement_timeout: 60000
 
 development:
   <<: *default