Use OP_MSG not OP_GET_MORE in find_raw_batches and aggregate_raw_batches

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: