Feature Request: Use createSyncAccessHandle({mode: "read-only"})
when attaching an OPFS file handle as readonly
#2066
DaveShuckerow
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I've been exploring duckdb-wasm as a query engine against OPFS files, and I'm impressed with the performance in simple use cases and demos.
However, I'd like to be able to query the same OPFS file from multiple DuckDB Workers, and I was surprised that I couldn't attach two workers to the same file in readonly mode.
With some digging, I discovered that duckdb was not passing down the
accessMode
parameter to the OPFS file handles it is creating, either when usingor when using
I saw there was some discussion already about doing this in #1962, but it doesn't appear to be being actively worked on.
As a prospective user, it would be a game changer to have.
Beta Was this translation helpful? Give feedback.
All reactions