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

Avoid encoding the overflow document twice when a batched write command is split

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Performance, Write Ops
    • None

      As we generate a batched write command we encode the next operation and add it to the command. If that operation caused the command to overflow the maximum command size then the write command is returned without that operation. As we generate the next message we will re-encode the same operation. We should save the encoded operation (or encode the operation elsewhere) to avoid ever encoding the same operation twice.

            Unassigned Unassigned
            shane.harvey@mongodb.com Shane Harvey
            0 Vote for this issue
            1 Start watching this issue