In constructing the OP_MSG for a bulkWrite server command, we should only need to bson encode each operation document once. This gets done in the function _client_batched_op_msg_impl in message.py. However, the calls to _check_doc_size_limits within _client_batched_op_msg_impl cause the operation doc to be encoded a second time.
- is related to
-
PYTHON-4668 Improve performance of client.bulk_write
- Closed
- related to
-
DRIVERS-2862 Benchmark Collection and Client bulkWrite
- In Review