aohua/redux-state-sync

Sync is slow / laggy on Indexed DB

Opened this issue · 1 comments

Hi,

For some reason sync over IDB seems to be very slow. When using native / localStorage this issue disappears. I tested this on Chrome Version 84.0.4147.89 (Official Build) (64-bit) and Safari 13.1.1 (15609.2.9.1.2).

I thought maybe it's a problem in a way how the package uses IDB. However, if it's an issue in IDB itself, it would be a nice option to be able to choose automatically between native and localstorage (ban IDB).

aohua commented

Hi @Kalhama, thank you for your feedback, I will do some performance test as well. Temporally, you may consider force to use localstorage as the sync method.