Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-5059

Update default maxMessageSizeBytes and maxWriteBatchSize

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown 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@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None