You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm migrating our project to use Microsoft.Azure.Cosmos 3.1.1 instead of Microsoft.Azure.DocumentDB version 1.10. Everything is working fine except I noticed that I can't specify the EnableCrossPartitionQuery parameter. We used to set this in FeedOptions that was passed to CreateDocumentQuery. The other properties (like MaxItemCount) are in QueryRequestOptions that we now pass to GetItemQueryIterator but I don't see EnableCrossPartitionQuery.
Is this automatically set based on if we pass in a partition key? Thanks!
To Reproduce
Expected behavior
Actual behavior
Environment summary
SDK Version: 3.1.1
OS Version (e.g. Windows, Linux, MacOSX) Windows
The text was updated successfully, but these errors were encountered:
The v3 SDK sets the EnableCrossPartitionQuery automatically based on the query and QueryRequestOptions.PartitionKey value. There is no need to set it in v3.
Describe the bug
I'm migrating our project to use Microsoft.Azure.Cosmos 3.1.1 instead of Microsoft.Azure.DocumentDB version 1.10. Everything is working fine except I noticed that I can't specify the
EnableCrossPartitionQuery
parameter. We used to set this inFeedOptions
that was passed toCreateDocumentQuery
. The other properties (like MaxItemCount) are inQueryRequestOptions
that we now pass toGetItemQueryIterator
but I don't seeEnableCrossPartitionQuery
.Is this automatically set based on if we pass in a partition key? Thanks!
To Reproduce
Expected behavior
Actual behavior
Environment summary
SDK Version: 3.1.1
OS Version (e.g. Windows, Linux, MacOSX) Windows
The text was updated successfully, but these errors were encountered: