문제

I'm using mongodb with pymongo driver on gevent based framework. I don't understand working pool connection. I'm creating a new connection instance on every request:

connection = MongoClient(host='localhost', port=27017, use_greenlets=True)

Actually connection taken from a pool of?

Now, if I take the connection so:

connection = MongoClient(host='localhost', port=27017)

This is connection taken from with the same pool? What happens if you make a call MongoClient different arguments?

도움이 되었습니까?
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top