Skip to content

multiple worker/wasm loads for each instance of SQLocalDrizzle created #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
arolson101 opened this issue Apr 8, 2025 · 1 comment
Closed

Comments

@arolson101
Copy link

I am creating a database at runtime based on the user id returned by the server. I'm seeing that for each SQLocalDrizzle instance I create, a new worker is created (and loaded from the server), along with the sqlite wasm (which is also loaded from the server). Is there a reason why the worker/wasm can't be shared between all instances of SQLocalDrizzle objects?

@DallasHoff
Copy link
Owner

Your application should never need to download the Worker or WASM code more than once. If it is, make sure your caching settings are not misconfigured.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants