mongo thread/process safe?
This commit is contained in:
parent
18d6ff90fe
commit
e70802ef00
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue