I've read below link, but I wasn't clear if query results are limited by max degree of parallelism.
https://docs.microsoft.com/en-us/answers/questions/129094/how-to-retrieve-a-set-of-documents-from-cosmos-db.html
I have collection with partition key /id, and I am trying to fetch documents by ids.
I am fetching documents by ids using javascript SDK like below
const joinedIds = "'" + ids.join("','") + "'";
const statement = SELECT * FROM c WHERE c.id IN (${joinedIds});
container.items.query(statement).fetchAll()
and my database settings are the followings
- Page Options: unlimited
- Enable cross-partition query: enabled
- Max degree of parallelism: 6
My question is
If documents are distributed in more than 6 partitions,
Will fetchAll return all documents regardless of max degree of parallelism or number of result is limited by max degree of parallelism which is set to 6?
What is maximum value for maxDegreeOfParallelism?
Thanks in advance