Consider explaining the concurrency model in the README #237
Replies: 2 comments 7 replies
-
From the Go point-of-view, Wasm is irrelevant. Consider it an implementation detail. For the For the lower level For how much concurrency you can get out of SQLite, it's mostly the same as SQLite itself: one writer or many readers, but not both (with rollback journal), one writer coexisting with many readers (in Wal mode). On BSD you get slightly less concurrency in rollback mode (readers need to leave sooner for writers to make progress). And with dot-locks multiple processes are not allowed. For the implementation detail: we don't use Wasm threads. Each connection gets its own isolated (and single-threaded) sandbox. |
Beta Was this translation helpful? Give feedback.
-
Thank you, all very useful to know.
Does that imply that connections consume more memory than you might otherwise expect? |
Beta Was this translation helpful? Give feedback.
-
Given the use of WASM it isn't clear what the concurrency model of the package is. Consider explaining the concurrency model in the README?
Beta Was this translation helpful? Give feedback.
All reactions