-
Notifications
You must be signed in to change notification settings - Fork 2
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
Trackers exceed cache size #52
Comments
Only increases as tracker is ticking, or on "play" |
Remarking out the |
Potential alternatives to local storage? https://spectrum.chat/apollo/apollo-client/large-datasets-in-apollo-cache-inmemory-and-persist~e6e98cd4-a442-497c-9efb-5e8df016b97b |
Cache appears to be expanded due to the caching of the actual query/mutation execution; "application > storage > local storage > apollo-cache-persist", and inside of the Either need to find a way to delete those, or specify a key (so that only one key is used per |
I posted a question, and a solution that I came up with here: |
|
- after running the app overnight into about 1PM the next day, an exception was thrown where the cache could not be written to since it hand ran out of space - I'm not sure why this occured since most of the data is repetitive, and very small; Running snippet from: https://stackoverflow.com/questions/4391575/how-to-find-the-size-of-localstorage - the snippet in the forum shows the amount increasing slowly (~2KB) per tick of one tracker refs #52
- I pinned down the issue to the results of the `mutation` for `updateTracker()` being cached under the `ROOT_MUTATION` key in the apollo cache, when persisted into local storage - prior to writing to the cache, I am currently deleting those keys that contain `updateTracker` and the `task.userTaskInfo.id` field - if there is a way to specify keys under the `ROOT_MUTATION`, then I should be able to rely on that instead of this cleanup... closes #52
Complete as of a1b6054 |
If a tracker is tracking, the size of the persistent storage cache (local storage) is increasing around 2KB per.
There is a snippet here that can calculate the remaining local storage space
https://stackoverflow.com/questions/4391575/how-to-find-the-size-of-localstorage
The text was updated successfully, but these errors were encountered: