I'm looking to use the ReadManyItemsStreamAsync() method from the Cosmos SDK for .NET to read out thousands of records from a container, and save them to a file. Streams sound great since I can just copy the response stream to the file stream and bypass unnecessary deserialization.
In the past, when working with other Cosmos APIs that query containers, we have to account for batch size limitations of the API and use an iterator pattern to check for more results and then read next "page" of results in a loop, in order to get all the results of a query beyond a single batch/page size.
However, I noticed that the ReadManyItemsStream only returns a ResponseMessage with a Content property of type Stream (to be expected), but has no concept of iterators or checking for more/reading next results, etc.
A google search of that specific method doesn't yield anything useful except the link to the MS docs. And the docs don't mention anything about batch limits, nor does the sample code hint to batch limits.
Does this mean that it will actually return a stream with all results, regardless of the size of the batch - so, if I pass in a list of like 3,000 or 15,000 document IDs, it will grab all of those in one request and return as a single stream response?