diff --git a/.gossamer_forums.rb.swp b/.gossamer_forums.rb.swp deleted file mode 100644 index 87227c2..0000000 Binary files a/.gossamer_forums.rb.swp and /dev/null differ diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 25c8026..fb67a91 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -1132,11 +1132,11 @@ class GossamerForumsImporter < ImportScripts::Base # Use CachedThreadPool for dynamic thread management #### pool = Concurrent::CachedThreadPool.new ###### pool = Concurrent::FixedThreadPool.new(7) - pool = Concurrent::FixedThreadPool.new(20) + pool = Concurrent::FixedThreadPool.new(12) # Define the connection pool inside the method ###### mariadb_pool = ConnectionPool.new(size: 14, timeout: 100) do - mariadb_pool = ConnectionPool.new(size: 20, timeout: 100) do + mariadb_pool = ConnectionPool.new(size: 24, timeout: 100) do Mysql2::Client.new( host: "slowtwitch.northend.network", username: "admin", @@ -1154,7 +1154,7 @@ class GossamerForumsImporter < ImportScripts::Base parent_post_ids = result.map { |row| row['post_id'] } # parent_post_count = parent_post_ids.count - batch_size = 30 # Set our batch size for number of posts to import in a single batch + batch_size = 10 # 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.