From 74d2ee7382abaa3d09ede4f4597701ec1d238384 Mon Sep 17 00:00:00 2001 From: saint Date: Mon, 19 Aug 2024 12:13:27 +1000 Subject: [PATCH] v0.48.4 Batch size 1000 --- gossamer_forums.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 4539ed8..4742c3c 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -1,7 +1,7 @@ # Federated Computer, Inc. # David Sainty 2024 A.D. # Gossamer Threads to Discourse -- Migration-Import Script -# v0.48.3 Further attempts to address MariaDB challenges and make things as foolproof as possible. +# v0.48.4 Batch size 1000 require 'mysql2' require 'open-uri' @@ -1148,7 +1148,7 @@ class GossamerForumsImporter < ImportScripts::Base parent_post_ids = result.map { |row| row['post_id'] } # parent_post_count = parent_post_ids.count - batch_size = 10 # Set our batch size for number of posts to import in a single batch + batch_size = 1000 # Set our batch size for number of posts to import in a single batch #### current_post_batch = 0 # Set our current batch number. This tracks the current batch of posts being processed.