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.
- causes
-
INTPYTHON-82 With pymongo>=3.12 pymongoarrow is slower than the naive approach
- Closed
-
PYTHON-2734 Test failure - test_cursor.TestRawBatchCursor.test_read_concern
- Closed
- has to be done before
-
PYTHON-2720 Add mockupDB tests for using OP_MSG for raw batches and exhaust cursors
- Closed
- is depended on by
-
PYTHON-2389 Add session support to find_raw_batches and aggregate_raw_batches
- Closed
- is duplicated by
-
PYTHON-2592 find_raw_batches raises exception on Views
- Closed
- is related to
-
PYTHON-1636 Support Exhaust Cursor in OP_MSG
- Closed
- related to
-
PYTHON-2722 Improve performance of find/aggregate_raw_batches
- Closed
-
PYTHON-2735 CSFLE support for find/aggregate_raw_batches
- Backlog