diff --git a/src/Common/CosmosClient.ts b/src/Common/CosmosClient.ts index 2779e1ba1..da84e0c07 100644 --- a/src/Common/CosmosClient.ts +++ b/src/Common/CosmosClient.ts @@ -203,8 +203,10 @@ export function client(): Cosmos.CosmosClient { } let _defaultHeaders: Cosmos.CosmosHeaders = {}; + _defaultHeaders["x-ms-cosmos-sdk-supportedcapabilities"] = SDKSupportedCapabilities.None | SDKSupportedCapabilities.PartitionMerge; + _defaultHeaders["x-ms-cosmos-throughput-bucket"] = 1; if ( userContext.authType === AuthType.ConnectionString || diff --git a/src/Common/dataAccess/__snapshots__/queryDocuments.test.ts.snap b/src/Common/dataAccess/__snapshots__/queryDocuments.test.ts.snap index 79da51170..bcf0034a4 100644 --- a/src/Common/dataAccess/__snapshots__/queryDocuments.test.ts.snap +++ b/src/Common/dataAccess/__snapshots__/queryDocuments.test.ts.snap @@ -5,9 +5,6 @@ exports[`getCommonQueryOptions builds the correct default options objects 1`] = "disableNonStreamingOrderByQuery": true, "enableScanInQuery": true, "forceQueryPlan": true, - "initialHeaders": { - "x-ms-cosmos-throughput-bucket": "1", - }, "maxDegreeOfParallelism": 0, "maxItemCount": 100, "populateQueryMetrics": true, @@ -19,9 +16,6 @@ exports[`getCommonQueryOptions reads from localStorage 1`] = ` "disableNonStreamingOrderByQuery": true, "enableScanInQuery": true, "forceQueryPlan": true, - "initialHeaders": { - "x-ms-cosmos-throughput-bucket": "1", - }, "maxDegreeOfParallelism": 17, "maxItemCount": 37, "populateQueryMetrics": true, diff --git a/src/Common/dataAccess/queryDocuments.ts b/src/Common/dataAccess/queryDocuments.ts index 0fc30fc73..223fe987d 100644 --- a/src/Common/dataAccess/queryDocuments.ts +++ b/src/Common/dataAccess/queryDocuments.ts @@ -28,9 +28,5 @@ export const getCommonQueryOptions = (options: FeedOptions): FeedOptions => { Queries.itemsPerPage; options.maxDegreeOfParallelism = LocalStorageUtility.getEntryNumber(StorageKey.MaxDegreeOfParellism); options.disableNonStreamingOrderByQuery = !isVectorSearchEnabled(); - options.initialHeaders = { - ...options.initialHeaders, - "x-ms-cosmos-throughput-bucket": "1", - }; return options; };