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

Use OP_MSG not OP_GET_MORE in find_raw_batches and aggregate_raw_batches

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.12, 4.0
    • Affects Version/s: None
    • Component/s: API

      The server will soon deprecate support for legacy wire protocol message types. We should stop using OP_GET_MORE in find_raw_batches/aggregate_raw_batches and use OP_MSG instead. This may have a negative performance impact because OP_MSG returns a documents in a BSON array that we will have to massage into the document stream format that OP_GET_MORE returns.

      Another reason to make this change is that mixing new and old wire protocol messages on the same cursor is somewhat of a gray area.

            Assignee:
            prashant.mital Prashant Mital (Inactive)
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: