mongo thread/process safe?

pull/1/head
Steve L. Nyemba 4 years ago
parent 18d6ff90fe
commit e70802ef00

@ -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']

Loading…
Cancel
Save