Optimize auto encrypted bulk write batching

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When auto encryption is configured on a client, we generate a batched bulk write command using the OP_QUERY command code path, then chop off the OP_QUERY message header, then decode the encoded batched command, and finally we send that command to the server (re-encoding).

      This decoding and re-encoding is not so bad because we use RawBSONDocument to avoid decoding/encoding the documents to insert/update/delete but we can improve this further. One improvement would be to use PYTHON-1917 to execute the encoded command directly.

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

              Created:
              Updated: