From fede09c6920b6c74b9aa39d7cfbe99b9fd87dffa Mon Sep 17 00:00:00 2001 From: Hayden McAfee Date: Sun, 28 Apr 2024 14:38:53 -0700 Subject: [PATCH] Revert recent change in attempt to fix perf --- src/Api/EdmModelBuilder.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Api/EdmModelBuilder.cs b/src/Api/EdmModelBuilder.cs index 14d8790..68d427c 100644 --- a/src/Api/EdmModelBuilder.cs +++ b/src/Api/EdmModelBuilder.cs @@ -37,7 +37,9 @@ private static StructuralTypeConfiguration GenerateEntitySet( .Count() .Expand(MAX_EXPAND_DEPTH) .OrderBy() - .Page(MAX_RESULTS, MAX_RESULTS) + // .Page(MAX_RESULTS, MAX_RESULTS) // Adding pagination introduces performance + // problems on expand queries. + // https://github.com/OData/AspNetCoreOData/issues/1041 .Select(); } }