# Apollo Client 3.9 Feature Spotlight - The memory story

DevFeed: [Apollo Client 3.9 Feature Spotlight - The memory story](<https://devfeed.tech/articles/apollo-client-3-9-feature-spotlight-the-memory-story-23154.md>)

Original publisher: [Read original article](<https://www.apollographql.com/blog/apollo-3-9-beta-feature-spotlight-the-memory-story>)

Author: Lenz Weber-Tronic

Published: 2023-12-20T16:02:32Z

Content type: release

Language: en

Sources: [Apollo Blog](<https://devfeed.tech/sources/apollo-blog.md>)

Topics: [Memory Leaks](<https://devfeed.tech/topics/memory-leaks.md>), [apollo-client](<https://devfeed.tech/topics/apollo-client.md>), [Cache](<https://devfeed.tech/topics/cache.md>)

Tags: [apollo-client](<https://devfeed.tech/tags/apollo-client.md>), [beta](<https://devfeed.tech/tags/beta.md>), [cache](<https://devfeed.tech/tags/cache.md>), [memory](<https://devfeed.tech/tags/memory.md>), [memory-leaks](<https://devfeed.tech/tags/memory-leaks.md>)

## AI overview

Apollo Client 3.9 beta fixes multiple memory leaks and adds granular control over internal cache sizes. The maintainers describe how they used artificially scaled benchmarks, large heap dumps, and Facebook's memlab tool to find leaks they could not reproduce locally. A long-running issue had accumulated reports of different leaks without reproductions, making investigation difficult; the original reporter later said upgrading to 3.6.0 and following another user's recommendation fixed their problem. The release also deprecates canonizeResults because of an associated conceptual memory leak the maintainers say cannot be fixed. The excerpt does not include the requested guidance on choosing default cache sizes.

## Source excerpt

Apollo Client 3.9 is out in beta now, and it fixes various memory leaks, adds granular control over internal cache sizes, and deprecates the canonizeResults option due to a conceptual and non-fixable memory leak associated with it. We want your help to find the correct default cache sizes - see the last paragraph for details on that. The memory story Sometimes, in an open source project, you have that issue that sticks around for a long time because it's not clear how you would tackle it.