mongo thread/process safe?

This commit is contained in:
Steve Nyemba 2020-10-08 17:14:35 -05:00
parent 18d6ff90fe
commit e70802ef00
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class Mongo :
password=args['password'] , password=args['password'] ,
authMechanism='SCRAM-SHA-256') authMechanism='SCRAM-SHA-256')
else: else:
self.client = MongoClient(host) self.client = MongoClient(host,maxPoolSize=10000)
self.uid = args['doc'] #-- document identifier self.uid = args['doc'] #-- document identifier
self.dbname = args['dbname'] if 'dbname' in args else args['db'] self.dbname = args['dbname'] if 'dbname' in args else args['db']