Ver código fonte

mongo thread/process safe?

Steve Nyemba 4 anos atrás
pai
commit
e70802ef00
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      transport/mongo.py

+ 1 - 1
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']