Skip to content

Parallel selects with IndexedDB #52

Answered by rhashimoto
steida asked this question in Q&A
Discussion options

You must be logged in to vote

You might be wondering whether passing multiple statements to sqlite3.exec is faster than using the lower level functions. That would likely be true if it simply called the SQLite API function as that would cross the Javascript/WebAssembly language boundary fewer times, but wa-sqlite implements its own exec in Javascript so there shouldn't be any difference.

Otherwise the considerations are basically the same for optimizing any SQLite application; make sure your queries are efficient and tune to avoid system calls. So things like:

  • If you're using a filesystem that uses locks to allow concurrency (like the example IndexedDB or OPFS VFS classes), limit the number of locks by putting multip…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rhashimoto
Comment options

Answer selected by steida
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants