How does pooling work in PyMongo?
Each instance of Connection has a built-in connection pool. By default, each thread receives its own socket, reserved during its first operation. Those sockets remain until end_request () is called by this thread.
end_request() , . , PyMongo .
, , auto_start_request = False, () .
, , , . end_request , . , , .
, , auto_start_request=False , .
, . , , , , . . , .