From: Sam Date: Tue, 13 Dec 2016 03:54:14 +0000 (+1100) Subject: some more db tuning X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=02da1cc9b3ef076994b52ef8ec59e9c791898218;p=discourse_docker.git some more db tuning --- diff --git a/image/discourse_dev/postgres_dev.template.yml b/image/discourse_dev/postgres_dev.template.yml index 58831e8..ef40a45 100644 --- a/image/discourse_dev/postgres_dev.template.yml +++ b/image/discourse_dev/postgres_dev.template.yml @@ -1,4 +1,15 @@ run: + + - replace: + filename: "/etc/postgresql/9.5/main/postgresql.conf" + from: /#?fullpage_writes *=.*/ + to: "fullpage_writes = off" + + - replace: + filename: "/etc/postgresql/9.5/main/postgresql.conf" + from: /#?fsync *=.*/ + to: "fsync = off" + - exec: background: true # use fast shutdown for pg