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

API for retrieving batches as raw document streams

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.6
    • None
    • None
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: