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

Use maxWriteBatchSize from ismaster for write command batch splitting.

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 2.7
    • None
    • None

    Description

      Use a default maxWriteBatchSize of 1000 while disconnected or if maxWriteBatchSize is not reported in ismaster. Otherwise, set client.max_write_batch_size to the value in ismaster, for all client types.

      When streaming operations with a new write command, finish a batch after every maxWriteBatchSize documents or when exceeding maxMessageSize, whichever comes first.

      Remove the 1000-operation limit from the Bulk API implementation since the underlying write command implementation now handles it.

      Bulk inserts with OP_INSERT are unaffected.

      Attachments

        Issue Links

          Activity

            People

              jesse@mongodb.com A. Jesse Jiryu Davis
              barrie Barrie Segal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: