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

API for retrieving batches as raw document streams

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: