question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IE11 `apollo-cache-inmemory` performance issues

See original GitHub issue

Reported via Slack. Reproduction: https://github.com/acidbluebriggs/apollo-cache-perf

From the README:

What this example will show is a large graphql query result being consumed by the client. The data is returned from a mock service using the json-server module from npmjs.org. The actual data is located in the file: mock-graphql-server/mock-graphql-response.json.

What to observe is how long compared to other browsers IE 11 takes to process the data and enter it into its cache. This dataset is just to give a decent example of the problem. Even when paging through records using a cursor, the processing of the subset of data will increase for each new request. It degrades consistently as the cache grows. It seems that there is an extremely large amount of “subscriber notifications” that occur during the cache writes. You can seem more information at:

*Note: Even though the response shows a relay style cursor, the result is not from a graphql server so changing the query will have no effect. The project is also using the latest beta of the cache to demonstrate the same issue appears as older versions.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
hijazcommented, Nov 20, 2018

Facing the same issue. Is this going to be addressed?

1reaction
hwillsoncommented, Jul 26, 2018

Thanks @goldo - yes, the original reporter tried the most recent version of apollo-cache-inmemory, as well as the 1.3.0-beta.5 (which includes the performance enhancements from https://github.com/apollographql/apollo-client/pull/3394), and the problem still persists.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apollo InMemoryCache Performance Strategies for Large ...
The real issue is that IE 11, which we I have to support due to the industry's (healthcare) usage of this browser, is...
Read more >
Advanced topics on caching in Apollo Client
This article describes special cases and considerations when using the Apollo Client cache. Bypassing the cache. Sometimes you shouldn't use the cache for...
Read more >
Improving performance in Apollo Client - Apollo GraphQL Docs
Improving performance in Apollo Client. Redirecting to cached data. In some cases, a query might request data that's already present in the Apollo...
Read more >
Configuring the Apollo Client cache - Apollo GraphQL Docs
The InMemoryCache constructor accepts a variety of configuration options. Configuration options. You can configure the cache's behavior to better suit your ...
Read more >
@apollo/client - Awesome JS
Fix issue where loading remains true after observer.refetch is called repeatedly with different variables when the same data are returned. @alessbell in #10143....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found