Skip to content

Commit

Permalink
Increase default memory limits (#11495)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller authored Jan 17, 2024
1 parent 8e79ad4 commit 1190aa5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .api-reports/api-report-utilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions .changeset/pink-apricots-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@apollo/client": patch
---

Increase the default memory limits for `executeSelectionSet` and `executeSelectionSetArray`.
4 changes: 2 additions & 2 deletions .size-limits.json
Original file line number Diff line number Diff line change
@@ -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
}
4 changes: 2 additions & 2 deletions src/utilities/caching/sizes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

0 comments on commit 1190aa5

Please sign in to comment.