From 7cc3648d471d125ab5a8f6caa408bd370b0f7473 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Sun, 2 Apr 2023 15:58:54 +0200 Subject: [PATCH] scripts: reduce pgloader's prefetched columns This helps fixing stack overflow errors on large databases. --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index e762d7b..1daf9f3 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -67,7 +67,7 @@ LOAD DATABASE WITH include no drop, truncate, create no tables, create no indexes, preserve index names, no foreign keys, - data only, workers = 16, concurrency = 1 + data only, workers = 16, concurrency = 1, prefetch rows = 10000 SET MySQL PARAMETERS net_read_timeout = '90',