datahike icon indicating copy to clipboard operation
datahike copied to clipboard

Can't create/open DB in Web Worker

Open MarkusH14 opened this issue 4 years ago • 1 comments
trafficstars

I tried out the IndexedDB implementation and attempted to use it from a WebWorker. However, Datahike never finds the DB. My assumption is that konserve uses js/window.indexedDB which is not available in a WebWorker context. Replacing it with js/self.indexedDB or js/indexedDB could be enough to solve this.

MarkusH14 avatar Sep 13 '21 05:09 MarkusH14

@MarkusH14 Thanks for reporting this, I did not know about thi. @groundedSAGE we should keep this in mind when we port the indexedDB backend now.

whilo avatar Sep 16 '21 04:09 whilo