在将大量数据批量加载到 MDM 中时,您可能遇到事务和死锁问题,因为服务器端太多的线程在尝试获得数据库连接。
步骤
-
浏览至文件 <$INSTALLDIR>\conf\mdm.conf 并将其打开。
-
根据需要配置以下两个参数:
#To avoid connection pool and database overload, default value is 25
bulkload.concurrent.database.requests=30
#Control how many milliseconds to wait before retry, default value is 200
bulkload.concurrent.wait.milliseconds=300
在此例中,我们将最大并发数据库请求数量设置为 30,将请求重试等待时间设置为 300 毫秒。
-
将您的更改保存到文件。