-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
In PERF-5334 the server perf team discovered that their pymongo benchmark spends a lot of cpu time in MongoClient._get_topology. It's possible we can optimize this code path.
For context, _get_topology() needs to ensure the topology state is opened. In the past, pymongo allowed a closed client to be automatically re-opened the next time the it was used. It's possible a lot of the work done in _get_topology can be skipped now that a closed client can never be re-opened.
- is related to
-
PYTHON-4481 Improve PyMongo performance
-
- Backlog
-
-
PYTHON-4325 Add multithreaded benchmarks to performance tests
-
- Closed
-
-
PYTHON-4473 Optimize find/aggregate/command by avoiding duplicate calls to _get_topology
-
- Closed
-
- related to
-
PYTHON-2463 Do not allow a MongoClient to be reused after it is closed
-
- Closed
-