Update default maxMessageSizeBytes and maxWriteBatchSize

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • 4.11
    • 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.

            Assignee:
            Shane Harvey
            Reporter:
            Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: