From 1190aa59a106217f7192c1f81099adfa5e4365c1 Mon Sep 17 00:00:00 2001 From: Jerel Miller Date: Wed, 17 Jan 2024 09:35:11 -0700 Subject: [PATCH] Increase default memory limits (#11495) --- .api-reports/api-report-utilities.md | 4 ++-- .changeset/pink-apricots-yawn.md | 5 +++++ .size-limits.json | 4 ++-- src/utilities/caching/sizes.ts | 4 ++-- 4 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 .changeset/pink-apricots-yawn.md diff --git a/.api-reports/api-report-utilities.md b/.api-reports/api-report-utilities.md index 8028dbdf360..2a68877e70d 100644 --- a/.api-reports/api-report-utilities.md +++ b/.api-reports/api-report-utilities.md @@ -729,9 +729,9 @@ export const enum defaultCacheSizes { // (undocumented) "fragmentRegistry.transform" = 2000, // (undocumented) - "inMemoryCache.executeSelectionSet" = 10000, + "inMemoryCache.executeSelectionSet" = 50000, // (undocumented) - "inMemoryCache.executeSubSelectedArray" = 5000, + "inMemoryCache.executeSubSelectedArray" = 10000, // (undocumented) "inMemoryCache.maybeBroadcastWatch" = 5000, // (undocumented) diff --git a/.changeset/pink-apricots-yawn.md b/.changeset/pink-apricots-yawn.md new file mode 100644 index 00000000000..08ce8d75998 --- /dev/null +++ b/.changeset/pink-apricots-yawn.md @@ -0,0 +1,5 @@ +--- +"@apollo/client": patch +--- + +Increase the default memory limits for `executeSelectionSet` and `executeSelectionSetArray`. diff --git a/.size-limits.json b/.size-limits.json index 899614463c5..b0991a503d4 100644 --- a/.size-limits.json +++ b/.size-limits.json @@ -1,4 +1,4 @@ { - "dist/apollo-client.min.cjs": 39201, - "import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 32694 + "dist/apollo-client.min.cjs": 39141, + "import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 32647 } diff --git a/src/utilities/caching/sizes.ts b/src/utilities/caching/sizes.ts index 28ace70a8c2..114ce2118bc 100644 --- a/src/utilities/caching/sizes.ts +++ b/src/utilities/caching/sizes.ts @@ -314,6 +314,6 @@ export const enum defaultCacheSizes { "cache.fragmentQueryDocuments" = 1000, "removeTypenameFromVariables.getVariableDefinitions" = 2000, "inMemoryCache.maybeBroadcastWatch" = 5000, - "inMemoryCache.executeSelectionSet" = 10000, - "inMemoryCache.executeSubSelectedArray" = 5000, + "inMemoryCache.executeSelectionSet" = 50000, + "inMemoryCache.executeSubSelectedArray" = 10000, }