Skip to content

loading multiple indexes #10

Open
Open
@yeus

Description

Hi, thanks for compiling hnsw to webassembly! I am using this library for several of my open source packages.

I have found the following issue: When I try to load multiple indexes in parallel and read the saved index from indexeddb or diskemscripten FS using readIndex, Webassembly errors get thrown around. I don't get a specific error message. Just "webassembly.exception"

like this:

image

The error message doesn't have any real information attached to it.

--> my solution right now is to add a pause of 500ms before loading another index. And that seems to mitigate the issue for now.

here is the code if you're interested:

https://github.com/Xyntopia/taskyon/blob/5bf6076ad4b3d456f05185bc5fbeac728c740a99/src/modules/vectorSearch.ts#L49

This works. But I want to throw that in here. Maybe there is an easy solution to this. My workaround is quiet dirty.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions