mosaic icon indicating copy to clipboard operation
mosaic copied to clipboard

Use Shared Web Workers

Open derekperkins opened this issue 1 year ago • 2 comments

At least in the demos in the docs, DuckDB is running as a dedicated Web Worker. We often have users opening several tabs that would want to share the same data. Is there any reason that wouldn't work, or are there configuration knobs to tweak for that?

derekperkins avatar Jun 07 '24 23:06 derekperkins

I haven't played with shared worker yet but you could try instantiating a shared worker instead when intializing DuckDB wasm. Docs are at https://github.com/duckdb/duckdb-wasm/tree/main/packages/duckdb-wasm.

domoritz avatar Jun 08 '24 03:06 domoritz

I opened an upstream discussion

  • https://github.com/duckdb/duckdb-wasm/discussions/2063

derekperkins avatar Sep 03 '25 04:09 derekperkins