From b3a7f8c425be994644deb61ba55f736a9e106dd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Vit=C3=B3ria=20Silva?= Date: Tue, 21 Oct 2025 10:23:41 +0100 Subject: [PATCH] Optimize stream loading parameters Adjusted prefetch rows, batch rows, batch size, and rows per range settings in mariadb_to_postgres_streams_only.load to improve performance for activities_streams table migration. --- mariadb_to_postgres/mariadb_to_postgres_streams_only.load | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mariadb_to_postgres/mariadb_to_postgres_streams_only.load b/mariadb_to_postgres/mariadb_to_postgres_streams_only.load index 2cb1c816a..f44fa4c0b 100644 --- a/mariadb_to_postgres/mariadb_to_postgres_streams_only.load +++ b/mariadb_to_postgres/mariadb_to_postgres_streams_only.load @@ -4,7 +4,10 @@ LOAD DATABASE WITH include drop, create tables, create indexes, reset sequences, workers = 1, concurrency = 1, - multiple readers per thread, rows per range = 1 + prefetch rows = 100, + batch rows = 100, + batch size = 5MB, + rows per range = 10 INCLUDING ONLY TABLE NAMES MATCHING 'activities_streams'