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

Question: Can I update only modified value in indexedDB store? #262

Open
JamieMcDonnell opened this issue Jan 11, 2023 · 0 comments
Open

Comments

@JamieMcDonnell
Copy link

I see that saveState and restoreState write the whole store to the indexedDB every time a state property gets changed.

This is extremely inefficient on a store which contains a lot of data.

Is it possible to only change the single key which has been modified directly?

I have a lot of data in my store which does not change often, and reading/writing it every time a boolean property changes kills performance completely.

What am I missing?

Thank you so much.
Jamie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant