From 5ee5b5a8f5636ad6efa1d8e157968b0d544f679c Mon Sep 17 00:00:00 2001 From: Arik Fraimovich Date: Sun, 22 Jan 2017 15:03:13 +0200 Subject: [PATCH] Update postgres configuration to improve tests performance --- docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 4cc91d40ab..ccda9f59e4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -35,3 +35,7 @@ services: image: redis:2.8 postgres: image: postgres:9.3 + # The following turns the DB into less durable, but gains significant performance improvements for the tests run (x3 + # improvement on my personal machine). We should consider moving this into a dedicated Docker Compose configuration for + # tests. + command: "postgres -c fsync=off -c full_page_writes=off -c synchronous_commit=OFF"