diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 6f4fc3a..87cd860 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -18,6 +18,8 @@ require 'concurrent' require 'sys/proctable' +require 'connection_pool' + require File.expand_path("../../../../config/environment", __FILE__) # require_relative '../base' require File.expand_path("../../../../script/import_scripts/base", __FILE__) @@ -1067,7 +1069,7 @@ class GossamerForumsImporter < ImportScripts::Base # Get list of TOPICS / OP posts, i.e. post ids that have no parent / root id - SELECT post_id FROM gforum_Post WHERE post_root_id = 0; def threaded_topic_import # Define the connection pool inside the method - mariadb_pool = ConnectionPool.new(size: 10, timeout: 5) do + mariadb_pool = ConnectionPool.new(size: 20, timeout: 500) do Mysql2::Client.new( host: "slowtwitch.northend.network", username: "admin",