Browse Source

mongo thread/process safe?

Steve Nyemba 5 năm trước cách đây
mục cha
commit
e70802ef00
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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']