From a10df09d094cfda7158bf5b1c606932edfe7ecea Mon Sep 17 00:00:00 2001 From: saint Date: Mon, 19 Aug 2024 13:11:16 +1000 Subject: [PATCH] v0.48.5 Batch size 1000, double councurrency numbers --- gossamer_forums.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 06ffc98..d679e1a 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -37,7 +37,7 @@ class GossamerForumsImporter < ImportScripts::Base username: 'admin', password: "yxnh93Ybbz2Nm8#mp28zCVv", host: 'slowtwitch.northend.network', - pool: 24, # Adjust based on concurrency needs + pool: 48, # Adjust based on concurrency needs timeout: 5000 ) @@ -1126,11 +1126,11 @@ class GossamerForumsImporter < ImportScripts::Base # Use CachedThreadPool for dynamic thread management #### pool = Concurrent::CachedThreadPool.new ###### pool = Concurrent::FixedThreadPool.new(7) - pool = Concurrent::FixedThreadPool.new(24) + pool = Concurrent::FixedThreadPool.new(48) # Define the connection pool inside the method ###### mariadb_pool = ConnectionPool.new(size: 14, timeout: 100) do - mariadb_pool = ConnectionPool.new(size: 24, timeout: 100) do + mariadb_pool = ConnectionPool.new(size: 48, timeout: 100) do Mysql2::Client.new( host: "slowtwitch.northend.network", username: "admin",