Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help: Best way to keep an cache a large list #101

Closed
jync opened this issue Jun 26, 2017 · 2 comments
Closed

Help: Best way to keep an cache a large list #101

jync opened this issue Jun 26, 2017 · 2 comments
Labels
question Issues that have a question which should be addressed

Comments

@jync
Copy link

jync commented Jun 26, 2017

We have large lists of entities that we would like the Apollo client to cache. What is the recommended approach to do this?

As I understand... each query to the graph is cached by Apollo (both the entities and the list). How would this work in large lists? Would the client cache each paginated view of data?

What if we queried the list by a different set of parameters (e.g. change sort order), does the Apollo client 'merge' the list of data? Is there a way to do this at all? And what would be a recommended pattern to apply here?

@designatednerd designatednerd added the question Issues that have a question which should be addressed label Jul 10, 2019
@designatednerd
Copy link
Contributor

@jync Does the documentation for Caching and Watching Queries help at all here?

@designatednerd
Copy link
Contributor

Since I haven't heard back on this one in a couple weeks, I'm going to close it out. Please feel free to stop by our Spectrum Chat with any further questions. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Issues that have a question which should be addressed
Projects
None yet
Development

No branches or pull requests

2 participants