-
Type:
Task
-
Resolution: Fixed
-
Priority:
Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
Python Drivers
-
Not Needed
-
None
-
None
-
None
-
None
-
None
-
None
We have the following code in python:
# Defaults until we connect to a server and get updated limits. MAX_BSON_SIZE = 16 * (1024**2) MAX_MESSAGE_SIZE: int = 2 * MAX_BSON_SIZE MIN_WIRE_VERSION = 0 MAX_WIRE_VERSION = 0 MAX_WRITE_BATCH_SIZE = 1000
Now that we only support MongoDB 4.0+, we know the server's
maxMessageSizeBytes is always 48MB and maxWriteBatchSize is always 100,000. We should update these defaults.