Parallel selects with IndexedDB #52
-
Is it possible to somehow batch/group selects? What is the fastest way to read several selects? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You might be wondering whether passing multiple statements to 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:
|
Beta Was this translation helpful? Give feedback.
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 ownexec
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: