From e70802ef005e8c58303eea9fa84a6257aedc048a Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Thu, 8 Oct 2020 17:14:35 -0500 Subject: [PATCH] mongo thread/process safe? --- transport/mongo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/mongo.py b/transport/mongo.py index e86f1e8..04e2cad 100644 --- a/transport/mongo.py +++ b/transport/mongo.py @@ -37,7 +37,7 @@ class Mongo : password=args['password'] , authMechanism='SCRAM-SHA-256') else: - self.client = MongoClient(host) + self.client = MongoClient(host,maxPoolSize=10000) self.uid = args['doc'] #-- document identifier self.dbname = args['dbname'] if 'dbname' in args else args['db']