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

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.12, 4.0
    • API

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: