ylabel icon indicating copy to clipboard operation
ylabel copied to clipboard

_

Open ilanbm opened this issue 5 years ago • 1 comments

ilanbm avatar Dec 02 '20 21:12 ilanbm

Thanks for giving this a try and sharing the issue.

Here's what's happening and what we can do about it: When the user submits a file we pass at to a webworker via a singleton wrapper over the worker. That happens here

The issue you hit on is that passing data to webworks requires cloning the data and you ran out of memory during the clone. The solution for that is to modify the code above to batch the inserts.

It might be tempting to just do the insert from the main thread but

  1. That would block the UI
  2. Indexddb (where we store the data) has a limit on how much data we can send to it in one chunk so we'd need to batch anyway

talolard avatar Dec 02 '20 21:12 talolard