From 45c8d70c777f06a7d3b9e9b653fd32b0aa46c5df Mon Sep 17 00:00:00 2001 From: asier-isayas Date: Thu, 26 Jun 2025 07:43:55 -0700 Subject: [PATCH] do not set disableNonStreamingOrderByQuery flag (#2179) Co-authored-by: Asier Isayas --- src/Common/dataAccess/__snapshots__/queryDocuments.test.ts.snap | 2 -- src/Common/dataAccess/queryDocuments.ts | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/Common/dataAccess/__snapshots__/queryDocuments.test.ts.snap b/src/Common/dataAccess/__snapshots__/queryDocuments.test.ts.snap index 0c7f67c57..28f3b8064 100644 --- a/src/Common/dataAccess/__snapshots__/queryDocuments.test.ts.snap +++ b/src/Common/dataAccess/__snapshots__/queryDocuments.test.ts.snap @@ -2,7 +2,6 @@ exports[`getCommonQueryOptions builds the correct default options objects 1`] = ` { - "disableNonStreamingOrderByQuery": true, "enableQueryControl": false, "enableScanInQuery": true, "forceQueryPlan": true, @@ -14,7 +13,6 @@ exports[`getCommonQueryOptions builds the correct default options objects 1`] = exports[`getCommonQueryOptions reads from localStorage 1`] = ` { - "disableNonStreamingOrderByQuery": true, "enableQueryControl": false, "enableScanInQuery": true, "forceQueryPlan": true, diff --git a/src/Common/dataAccess/queryDocuments.ts b/src/Common/dataAccess/queryDocuments.ts index 44cd6f4e9..cacbdd867 100644 --- a/src/Common/dataAccess/queryDocuments.ts +++ b/src/Common/dataAccess/queryDocuments.ts @@ -1,5 +1,4 @@ import { FeedOptions, ItemDefinition, QueryIterator, Resource } from "@azure/cosmos"; -import { isVectorSearchEnabled } from "Utils/CapabilityUtils"; import { LocalStorageUtility, StorageKey } from "../../Shared/StorageUtility"; import { Queries } from "../Constants"; import { client } from "../CosmosClient"; @@ -28,6 +27,5 @@ export const getCommonQueryOptions = (options: FeedOptions): FeedOptions => { Queries.itemsPerPage; options.enableQueryControl = LocalStorageUtility.getEntryBoolean(StorageKey.QueryControlEnabled); options.maxDegreeOfParallelism = LocalStorageUtility.getEntryNumber(StorageKey.MaxDegreeOfParellism); - options.disableNonStreamingOrderByQuery = !isVectorSearchEnabled(); return options; };