-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
Optimize find/aggregate/command by avoiding duplicate calls to _get_topology. The read and database.command() code paths accidentally call _get_topology() twice. _get_topology is expensive since it requires locks and checking the state of running threads.
Related to PYTHON-4347.
- is related to
-
PYTHON-4481 Improve PyMongo performance
- Backlog
- related to
-
PYTHON-4347 Optimize MongoClient._get_topology
- Closed