I have a function that fetch a JSON data via window.fetch
and put it inside IndexedDB
table via db.table.bulkPut(array_of_data)
.
It takes more than 10 seconds to do that because of large amount of data and it blocks UI and makes UX bad.
I have decided to run this task in a Worker
, but I have not found any examples how can I make that with Dexie.js or directly with IndexedDB
Thank you for any advice :)
Thank you @kaiido for link this is an answer -=> https://github.com/dfahlander/Dexie.js/issues/789
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With