Skip to content

Commit dd8a201

Browse files
committed
Improve PostgreSQL container performance
1 parent 16a9967 commit dd8a201

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker_db.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ postgresql_14() {
190190

191191
postgresql_15() {
192192
$CONTAINER_CLI rm -f postgres || true
193-
$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
193+
$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 \
194+
-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
194195
}
195196

196197
edb() {

0 commit comments

Comments
 (0)