File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 60
60
61
61
# Defaults until we connect to a server and get updated limits.
62
62
MAX_BSON_SIZE = 16 * (1024 ** 2 )
63
- MAX_MESSAGE_SIZE : int = 2 * MAX_BSON_SIZE
63
+ MAX_MESSAGE_SIZE = 48 * 1000 * 1000
64
64
MIN_WIRE_VERSION = 0
65
65
MAX_WIRE_VERSION = 0
66
- MAX_WRITE_BATCH_SIZE = 1000
66
+ MAX_WRITE_BATCH_SIZE = 100000
67
67
68
68
# What this version of PyMongo supports.
69
69
MIN_SUPPORTED_SERVER_VERSION = "4.0"
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ def max_bson_size(self) -> int:
133
133
134
134
@property
135
135
def max_message_size (self ) -> int :
136
- return self ._doc .get ("maxMessageSizeBytes" , 2 * self . max_bson_size )
136
+ return self ._doc .get ("maxMessageSizeBytes" , common . MAX_MESSAGE_SIZE )
137
137
138
138
@property
139
139
def max_write_batch_size (self ) -> int :
You can’t perform that action at this time.
0 commit comments