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

API for retrieving batches as raw document streams

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6
    • Affects Version/s: None
    • Component/s: None
    • None

      For the sake of BSON-NumPy and other libraries that can consume raw BSON, add an API that retrieves raw batches as undelimited streams of BSON documents. (A sequence of RawBSONDocument instances is too slow in some circumstances, see PYTHON-1284.)

      Proposed new methods are find_raw_batches and aggregate_raw_batches. These methods will return new cursor types which are iterables of batches. Each batch is a raw document stream: some number of undelimited raw BSON bytes all catenated together.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: