How to use Dexie.js inside of dedicated worker?
Asked Answered
I

1

9

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 :)

Intermediary answered 26/7, 2020 at 17:31 Comment(1)
github.com/dfahlander/Dexie.js/issues/789Erythrite
I
1

Thank you @kaiido for link this is an answer -=> https://github.com/dfahlander/Dexie.js/issues/789

Intermediary answered 28/7, 2020 at 7:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.