From ae9886080e86cc84e1d164deaa1ac197911c1321 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 2 Mar 2023 17:01:13 +0100 Subject: [PATCH] :paperclip: Add better database configuration for devenv --- docker/devenv/files/postgresql.conf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docker/devenv/files/postgresql.conf b/docker/devenv/files/postgresql.conf index da63d2602..f7f19c579 100644 --- a/docker/devenv/files/postgresql.conf +++ b/docker/devenv/files/postgresql.conf @@ -1,14 +1,17 @@ listen_addresses = '*' -max_connections = 100 -shared_buffers = 128MB -temp_buffers = 8MB -work_mem = 8MB +max_connections = 50 +shared_buffers = 256MB +temp_buffers = 18MB +work_mem = 18MB dynamic_shared_memory_type = posix synchronous_commit = off wal_writer_delay = 900ms max_wal_size = 1GB min_wal_size = 80MB +full_page_writes = off +min_wal_size=1GB +max_wal_size=4GB # log_min_duration_statement = 0 log_timezone = 'Europe/Madrid' @@ -19,4 +22,3 @@ lc_monetary = 'en_US.utf8' lc_numeric = 'en_US.utf8' lc_time = 'en_US.utf8' default_text_search_config = 'pg_catalog.english' -