championswimmer / vuex-persist

A Vuex plugin to persist the store. (Fully Typescript enabled)
http://championswimmer.in/vuex-persist
MIT License
1.67k stars 116 forks source link

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

Open JamieMcDonnell opened 1 year ago

JamieMcDonnell commented 1 year ago

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