From c3610186f8ef343865bc7c31df7837c6aa5a648a Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Mon, 9 Oct 2023 16:04:00 +0200 Subject: [PATCH] Improve PostgreSQL container performance --- docker_db.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker_db.sh b/docker_db.sh index aa51ef4c94..5345c07d4a 100755 --- a/docker_db.sh +++ b/docker_db.sh @@ -185,7 +185,8 @@ postgresql_14() { postgresql_15() { $CONTAINER_CLI rm -f postgres || true - $CONTAINER_CLI run --name postgres -e POSTGRES_USER=hibernate_orm_test -e POSTGRES_PASSWORD=hibernate_orm_test -e POSTGRES_DB=hibernate_orm_test -p5432:5432 -d docker.io/postgis/postgis:15-3.3 + $CONTAINER_CLI run --name postgres -e POSTGRES_USER=hibernate_orm_test -e POSTGRES_PASSWORD=hibernate_orm_test -e POSTGRES_DB=hibernate_orm_test -p5432:5432 --tmpfs /pgtmpfs:size=131072k -d docker.io/postgis/postgis:15-3.3 \ + -c fsync=off -c synchronous_commit=off -c full_page_writes=off -c shared_buffers=256MB -c maintenance_work_mem=256MB -c max_wal_size=1GB -c checkpoint_timeout=1d } edb() {